From c292ce2b29d641f8ab2bca374c0fa2764dbfe5bc Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 11 Nov 2023 16:51:00 +0900 Subject: [PATCH] workflows: do apt-get update before running install-build-deps.sh --- .github/workflows/build-ubuntu.yml | 4 +++- .github/workflows/test.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 33385cb..c6192c1 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -23,7 +23,9 @@ jobs: submodules: true - name: install build dependency - run: sudo ./scripts/install-build-deps.sh + run: | + sudo apt-get update + sudo ./scripts/install-build-deps.sh - name: patch to libssh run: patch -d libssh -p1 < patch/libssh-0.10.4.patch diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f34034..a3c2333 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,9 @@ jobs: # TODO: just building docker does not require libssh. fix CMakeLists - name: install build dependency - run: sudo ./scripts/install-build-deps.sh + run: | + sudo apt-get update + sudo ./scripts/install-build-deps.sh - name: configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}