From dfd5077115caadcc6d92213b45d782e33e95742c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 17 Jul 2024 08:16:26 -1000 Subject: [PATCH] btrfs-progs: github actions - do apt-get update before trying to install To ensure that package indexes are up to date. That should help to avoid failed CI runs, which failed to install certain packages as local cache is out-of-date and mirrors no longer contain that specific version. Signed-off-by: Yaroslav Halchenko --- .github/workflows/artifacts-static-build.yml | 2 +- .github/workflows/ci-sanitize.yml | 4 ++-- .github/workflows/coverage.yml | 2 +- .github/workflows/devel.yml | 14 +++++++------- .github/workflows/pull-request.yml | 2 +- .github/workflows/test.yml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/artifacts-static-build.yml b/.github/workflows/artifacts-static-build.yml index 3522ccc2f9..9f9128b77a 100644 --- a/.github/workflows/artifacts-static-build.yml +++ b/.github/workflows/artifacts-static-build.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make static diff --git a/.github/workflows/ci-sanitize.yml b/.github/workflows/ci-sanitize.yml index 41f8c187c8..2e69ed5921 100644 --- a/.github/workflows/ci-sanitize.yml +++ b/.github/workflows/ci-sanitize.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5114277415..65f2cd8b9d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq lcov + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq lcov - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index b60919137b..a69cc24660 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -23,7 +23,7 @@ jobs: id: changed-files uses: tj-actions/changed-files@v44 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx sphinx-rtd-theme-common python3-sphinx-rtd-theme + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx sphinx-rtd-theme-common python3-sphinx-rtd-theme - name: Configure run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure - name: Documentation @@ -66,7 +66,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation - name: Make @@ -91,7 +91,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make @@ -111,7 +111,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make @@ -133,7 +133,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make @@ -153,7 +153,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make @@ -173,7 +173,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e73b1802ed..373e5e5b17 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation - name: Make diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2083f1b204..64c1fee85f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - run: cat /proc/filesystems - run: gcc --version - run: df -HT - - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev + - run: sudo apt-get update -qqq && sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev - name: Configure run: ./autogen.sh && ./configure - name: Make