]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix CI failures by adding apt-get update to Github Actions (#3082)
authorElliot Gorokhovsky <embg@fb.com>
Thu, 3 Mar 2022 19:52:06 +0000 (14:52 -0500)
committerGitHub <noreply@github.com>
Thu, 3 Mar 2022 19:52:06 +0000 (14:52 -0500)
* Fix CI failures by adding apt-get update to Makefile

* Fix travis failure caused by apt-get update

* Move apt-get update from Makefile to Github Actions .yml

* Revert .travis.yml change

* Fix typo

.github/workflows/dev-long-tests.yml
Makefile

index 60d1d45b9a794558ab92cd1c6969c264f1dd60eb..779ba1c7c19deef51155c0509423708cf91df7fd 100644 (file)
@@ -75,6 +75,7 @@ jobs:
     - uses: actions/checkout@v2
     - name: ASan + UBSan + Test Zstd, 32bit mode
       run: |
+        sudo apt-get -qqq update
         make libc6install
         make -j uasan-test-zstd32 V=1
 
@@ -88,6 +89,7 @@ jobs:
     - uses: actions/checkout@v2
     - name: gcc-8 + ASan + UBSan + Fuzz Test
       run: |
+        sudo apt-get -qqq update
         make gcc8install
         CC=gcc-8 FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest
 
@@ -97,6 +99,7 @@ jobs:
     - uses: actions/checkout@v2
     - name: ASan + UBSan + Fuzz Test 32bit
       run: |
+        sudo apt-get -qqq update
         make libc6install
         CFLAGS="-O3 -m32" FUZZER_FLAGS="--long-tests" make uasan-fuzztest
 
@@ -152,6 +155,7 @@ jobs:
     - name: valgrind + fuzz test stack mode    # ~ 7mn
       shell: 'script -q -e -c "bash {0}"'
       run: |
+        sudo apt-get -qqq update
         make valgrindinstall
         make -C tests valgrindTest
         make clean
index 9b5451d3d748aa299c9319dc55d8b4489df71c3d..67ef928cce5c8a674eb483557a15b2a3e2cf41a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -334,6 +334,8 @@ tsan-%: clean
 
 .PHONY: apt-install
 apt-install:
+       # TODO: uncomment once issue 3011 is resolved and remove hack from Github Actions .yml
+       # sudo apt-get update
        sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install $(APT_PACKAGES)
 
 .PHONY: apt-add-repo