From 31ebbec99103443241dad6aa3ff0954cb20c132c Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Fri, 8 Mar 2024 21:39:03 +0100 Subject: [PATCH] Do not rely on already available package list apt and apk do manage their own package lists, but those can be outdated and require an update. This change makes it so that happens, which should prevent some failures. --- .github/workflows/compilation.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 974c53d..4525e5f 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -19,8 +19,8 @@ jobs: - name: Install dependencies Alpine if: matrix.os[0] == 'alpine' run: | - apk add build-base bash gcc git make autoconf automake python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev libtool \ - flex bison texinfo gmp-dev mpfr-dev mpc1-dev readline-dev ncurses-dev + apk add --no-cache build-base bash gcc git make autoconf automake python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev \ + libtool flex bison texinfo gmp-dev mpfr-dev mpc1-dev readline-dev ncurses-dev - name: Install dependencies Fedora if: matrix.os[0] == 'fedora' @@ -64,7 +64,8 @@ jobs: - name: Install Dependencies Ubuntu if: matrix.os[0] == 'ubuntu-latest' run: | - sudo apt-get -y install libarchive-dev libcurl4 libcurl4-openssl-dev libssl-dev libarchive-dev libgpgme-dev \ + sudo apt-get update + sudo apt-get -y install libcurl4 libcurl4-openssl-dev libssl-dev libarchive-dev libgpgme-dev \ gettext texinfo bison flex libncurses5-dev libgmp3-dev libmpfr-dev libmpc-dev echo "MSYSTEM=x64" >> $GITHUB_ENV