diff options
| author | Martin Hořeňovský | 2023-12-09 12:05:39 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-12-09 12:05:45 +0100 |
| commit | d1d7414eb9859092bee6329c85592d90096618c5 (patch) | |
| tree | e7aac31abfd54645ca41e0e1d9d1d028d657152c | |
| parent | dacbf4fd6c80d726b3d87e77c91bcacdd4fc57c0 (diff) | |
| download | catch3-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.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/linux-other-builds.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/linux-simple-builds.yml | 4 |
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}} |