From 60b6197fa662bf7272c3365f0eb4c25fa63e0ae5 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 25 Dec 2020 10:28:10 -0800 Subject: [PATCH] ci.yml: run 'apt-get update' prior to 'apt-get install' This hopefully will prevent the following error: E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.27-3ubuntu1.3_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5df8430..ff7cfdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get install -y clang llvm libz-dev valgrind + run: | + sudo apt-get update + sudo apt-get install -y clang llvm libz-dev valgrind - run: scripts/run_tests.sh other-arch-build-and-test: @@ -88,7 +90,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get install -y clang-tools + run: | + sudo apt-get update + sudo apt-get install -y clang-tools - name: Run clang static analyzer run: make scan-build @@ -98,7 +102,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get install -y shellcheck + run: | + sudo apt-get update + sudo apt-get install -y shellcheck - name: Run shellcheck run: make shellcheck @@ -108,7 +114,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get install -y gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 libz-mingw-w64-dev + run: | + sudo apt-get update + sudo apt-get install -y gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 libz-mingw-w64-dev - name: 32-bit build run: make CC=i686-w64-mingw32-gcc all test_programs - name: 64-bit build