Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-12-09 12:05:39 +0100
committerMartin Hořeňovský2023-12-09 12:05:45 +0100
commitd1d7414eb9859092bee6329c85592d90096618c5 (patch)
treee7aac31abfd54645ca41e0e1d9d1d028d657152c
parentdacbf4fd6c80d726b3d87e77c91bcacdd4fc57c0 (diff)
downloadcatch3-d1d7414eb9859092bee6329c85592d90096618c5.tar.gz
Always run apt-get update before apt-get install
The base images for GitHub Actions are updated weekly, but sometimes that is not enough to be able to install the packages we require. The recommended fix for this is to always run `apt-get update` before `apt-get install`.
-rw-r--r--.github/workflows/linux-meson-builds.yml4
-rw-r--r--.github/workflows/linux-other-builds.yml4
-rw-r--r--.github/workflows/linux-simple-builds.yml4
3 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/linux-meson-builds.yml b/.github/workflows/linux-meson-builds.yml
index 86871cc6..4ffa0243 100644
--- a/.github/workflows/linux-meson-builds.yml
+++ b/.github/workflows/linux-meson-builds.yml
@@ -21,7 +21,9 @@ jobs:
- uses: actions/checkout@v4
- name: Prepare environment
- run: sudo apt-get install -y meson ninja-build ${{matrix.other_pkgs}}
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y meson ninja-build ${{matrix.other_pkgs}}
- name: Configure build
env:
diff --git a/.github/workflows/linux-other-builds.yml b/.github/workflows/linux-other-builds.yml
index 0a51e7bd..4a7f5ecc 100644
--- a/.github/workflows/linux-other-builds.yml
+++ b/.github/workflows/linux-other-builds.yml
@@ -73,7 +73,9 @@ jobs:
- uses: actions/checkout@v4
- name: Prepare environment
- run: sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
- name: Configure build
working-directory: ${{runner.workspace}}
diff --git a/.github/workflows/linux-simple-builds.yml b/.github/workflows/linux-simple-builds.yml
index 3cdea50d..a32eb597 100644
--- a/.github/workflows/linux-simple-builds.yml
+++ b/.github/workflows/linux-simple-builds.yml
@@ -92,7 +92,9 @@ jobs:
if: ${{ matrix.cxx == 'g++-5' || matrix.cxx == 'g++-6' }}
- name: Prepare environment
- run: sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
- name: Configure build
working-directory: ${{runner.workspace}}