From ff42f7248b4bd83a692f553538bbf9150577af99 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 20 Mar 2023 22:01:50 -0300 Subject: ci: always update the package db before installing packages This should fix installing packages on build-extra.yml. Note that this is already done on build.yml and on gitlab-ci.yml. From the GitHub Actions documentation[1] [2]: > Note: Always run `sudo apt-get update` before installing a package. In > case the `apt` index is stale, this command fetches and re-indexes any > available packages, which helps prevent package installation failures. [1] https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners [2] https://github.com/actions/runner-images/issues/2924 --- .github/workflows/build-extra.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml index d1d8d4a17..d5fa4af3c 100644 --- a/.github/workflows/build-extra.yml +++ b/.github/workflows/build-extra.yml @@ -61,6 +61,8 @@ jobs: azure.archive.ubuntu.com:80 github.com:443 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f + - name: update package information + run: sudo apt-get update - name: install dependencies run: sudo apt-get install libapparmor-dev libselinux1-dev - name: configure @@ -82,6 +84,8 @@ jobs: azure.archive.ubuntu.com:80 github.com:443 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f + - name: update package information + run: sudo apt-get update - name: install clang-tools-14 and dependencies run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev - name: configure @@ -99,6 +103,8 @@ jobs: azure.archive.ubuntu.com:80 github.com:443 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f + - name: update package information + run: sudo apt-get update - name: install cppcheck run: sudo apt-get install cppcheck - name: cppcheck @@ -116,6 +122,8 @@ jobs: azure.archive.ubuntu.com:80 github.com:443 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f + - name: update package information + run: sudo apt-get update - name: install cppcheck run: sudo apt-get install cppcheck - name: cppcheck @@ -131,6 +139,8 @@ jobs: azure.archive.ubuntu.com:80 github.com:443 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f + - name: update package information + run: sudo apt-get update - name: install dependencies run: sudo apt-get install codespell - name: codespell -- cgit v1.2.3-54-g00ecf