From a330dcb75a5567d8cdfb0262f61c82fd35b56f92 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Tue, 27 Feb 2024 18:19:12 +0000 Subject: [PATCH] Run apt-get update before installing dependencies in GHA workflow --- .github/workflows/build-test.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 633b1694..dc3eec2c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -18,6 +18,7 @@ jobs: echo "VERSION=$full" >> $GITHUB_ENV - name: Install dependencies run: | + sudo apt-get update sudo apt-get install automake flex llvm-dev check lcov \ libdw-dev libffi-dev bison libreadline-dev tcl8.6-dev \ libzstd-dev libxml2-utils @@ -201,6 +202,7 @@ jobs: run: | ln -s contrib/debian debian sed -i 's/nvc (.*)/nvc (${{ env.VERSION }}-1)/' debian/changelog + sudo apt-get update sudo apt-get build-dep . dpkg-buildpackage -uc -us -b mv ../*.deb . @@ -224,7 +226,9 @@ jobs: path: vests fetch-depth: 1 - name: Install dependencies - run: sudo apt-get install ruby ruby-colorize + run: | + sudo apt-get update + sudo apt-get install ruby ruby-colorize - uses: actions/download-artifact@v4 with: name: 'Ubuntu package' @@ -333,7 +337,9 @@ jobs: path: microwatt fetch-depth: 1 - name: Install dependencies - run: sudo apt-get install python3 python3-colorama make + run: | + sudo apt-get update + sudo apt-get install python3 python3-colorama make - uses: actions/download-artifact@v4 with: name: 'Ubuntu package' @@ -393,7 +399,9 @@ jobs: with: fetch-depth: 1 - name: Install dependencies - run: sudo apt-get install tcl tcllib git + run: | + sudo apt-get update + sudo apt-get install tcl tcllib git - uses: actions/download-artifact@v4 with: name: 'Ubuntu package' @@ -422,7 +430,9 @@ jobs: submodules: recursive fetch-depth: 1 - name: Install dependencies - run: sudo apt-get install python3 python3-virtualenv + run: | + sudo apt-get update + sudo apt-get install python3 python3-virtualenv - uses: actions/download-artifact@v4 with: name: 'Ubuntu package' -- 2.39.2