From 3cd2542fa75c534da7413fb7cff25f629d5494da Mon Sep 17 00:00:00 2001 From: Andrew Hopkins Date: Wed, 10 Jan 2024 09:36:52 -0800 Subject: [PATCH] Always run 'apt-get update' before 'installing' (#1391) --- .github/workflows/actions-ci.yml | 1 + .github/workflows/aws-lc-rs.yml | 1 + .github/workflows/codecov-ci.yml | 4 +++- .github/workflows/cross-test.yml | 16 ++++++++++++---- .github/workflows/integrations.yml | 13 +++++++++---- 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/.github/workflows/actions-ci.yml b/.github/workflows/actions-ci.yml index f3dc0ca15f..5f46e446e6 100644 --- a/.github/workflows/actions-ci.yml +++ b/.github/workflows/actions-ci.yml @@ -24,6 +24,7 @@ jobs: uses: actions/checkout@v3 - name: Sanity Test Run run: | + sudo apt-get update sudo apt-get install ninja-build cmake -GNinja -Btest_build_dir ninja -C test_build_dir run_tests diff --git a/.github/workflows/aws-lc-rs.yml b/.github/workflows/aws-lc-rs.yml index bcd847fff4..6ab44dc66c 100644 --- a/.github/workflows/aws-lc-rs.yml +++ b/.github/workflows/aws-lc-rs.yml @@ -30,6 +30,7 @@ jobs: args: rust-script - name: Install OS Dependencies run: | + sudo apt-get update sudo apt-get -y --no-install-recommends install cmake gcc clang ninja-build golang - name: Remove aws-lc submodule from crate directory working-directory: ./aws-lc-rs/aws-lc-sys diff --git a/.github/workflows/codecov-ci.yml b/.github/workflows/codecov-ci.yml index 7ed53504da..8e0d34b39a 100644 --- a/.github/workflows/codecov-ci.yml +++ b/.github/workflows/codecov-ci.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install lcov - run: sudo apt-get -y install lcov + run: | + sudo apt-get update + sudo apt-get -y install lcov - uses: actions/checkout@v4 - name: Run Code Coverage Build run: ./util/codecov-ci.sh ${{ runner.temp }}/build diff --git a/.github/workflows/cross-test.yml b/.github/workflows/cross-test.yml index d57d2df02e..fbaa9acbf1 100644 --- a/.github/workflows/cross-test.yml +++ b/.github/workflows/cross-test.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install qemu - run: sudo apt-get -y install qemu-user qemu-user-binfmt + run: | + sudo apt-get update + sudo apt-get -y install qemu-user qemu-user-binfmt - uses: actions/checkout@v4 - name: PPC64 Build/Test run: tests/ci/run_cross_tests.sh ppc64 powerpc64-unknown-linux-gnu "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release -DFIPS=1 -DBUILD_SHARED_LIBS=1" @@ -20,7 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install qemu - run: sudo apt-get -y install qemu-user qemu-user-binfmt + run: | + sudo apt-get update + sudo apt-get -y install qemu-user qemu-user-binfmt - uses: actions/checkout@v4 - name: PPC32 Build/Test run: tests/ci/run_cross_tests.sh ppc powerpc-unknown-linux-gnu "-DCMAKE_BUILD_TYPE=Release" @@ -28,7 +32,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install qemu - run: sudo apt-get -y install qemu-user qemu-user-binfmt + run: | + sudo apt-get update + sudo apt-get -y install qemu-user qemu-user-binfmt - uses: actions/checkout@v4 - name: PPC32 Build/Test run: tests/ci/run_cross_tests.sh ppc powerpc-unknown-linux-gnu "-DCMAKE_BUILD_TYPE=Release -DFIPS=1 -DBUILD_SHARED_LIBS=1" @@ -36,7 +42,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install qemu - run: sudo apt-get -y install qemu-user qemu-user-binfmt + run: | + sudo apt-get update + sudo apt-get -y install qemu-user qemu-user-binfmt - uses: actions/checkout@v4 - name: PPC64LE Build/Test run: tests/ci/run_cross_tests.sh ppc64le powerpc64le-unknown-linux-gnu "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release -DFIPS=1 -DBUILD_SHARED_LIBS=1" diff --git a/.github/workflows/integrations.yml b/.github/workflows/integrations.yml index f4b5103cb5..46a8f273f6 100644 --- a/.github/workflows/integrations.yml +++ b/.github/workflows/integrations.yml @@ -15,6 +15,7 @@ jobs: steps: - name: Install OS Dependencies run: | + sudo apt-get update sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make - uses: actions/checkout@v3 - name: Run integration build @@ -31,7 +32,8 @@ jobs: steps: - name: Install OS Dependencies run: | - apt-get update && apt-get -y --no-install-recommends install cmake gcc g++ ninja-build golang make python3 python3-sphinx autoconf libtool pkg-config git libc++-dev + apt-get update + apt-get -y --no-install-recommends install cmake gcc g++ ninja-build golang make python3 python3-sphinx autoconf libtool pkg-config git libc++-dev - uses: actions/checkout@v3 - name: Run integration build run: | @@ -41,7 +43,8 @@ jobs: steps: - name: Install OS Dependencies run: | - sudo apt-get update && sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make libpcap-dev binutils-dev + sudo apt-get update + sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make libpcap-dev binutils-dev - uses: actions/checkout@v3 - name: Run integration build run: | @@ -51,7 +54,8 @@ jobs: steps: - name: Install OS Dependencies run: | - sudo apt-get update && sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make + sudo apt-get update + sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make - uses: actions/checkout@v3 - name: Run trousers build run: | @@ -61,7 +65,8 @@ jobs: steps: - name: Install OS Dependencies run: | - sudo apt-get update && sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make + sudo apt-get update + sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make - uses: actions/checkout@v3 - name: Run ntp build run: |