Skip to content

Commit

Permalink
GitHub CI: Update brew/apt-get before install
Browse files Browse the repository at this point in the history
The macOS VMs have recently failed to install mactex, because the
download URL is not found.  This is probably because "brew update" is
not being called, to update the formulae.  On Ubuntu, where apt-get is
used to install, in most cases "apt-get update" was being called, but
there was one place (Toooba test) that was missing.
  • Loading branch information
quark17 committed Apr 5, 2024
1 parent 4d95340 commit 537507b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ jobs:

- name: Install dependencies
run: |
brew update
brew install ccache libelf
- name: Download bsc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ccache libelf-dev
- name: Download bsc
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_doc_macos.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

brew update

brew install mactex-no-gui
1 change: 1 addition & 0 deletions .github/workflows/install_dependencies_doc_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

apt-get install -y \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

brew update

# ccache is not required to build bsc, but we use it in build.yml to improve
# the build performance by caching C++ obj files across multiple builds.
brew install \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

apt-get install -y \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_testsuite_macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

brew update

brew install \
ccache \
deja-gnu \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/install_dependencies_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

# ccache is not required to buid bsc, but we use it in build.yml to improve
Expand Down

0 comments on commit 537507b

Please sign in to comment.