From 821c7b02f56511392fcf430f58d2994c723eb0aa Mon Sep 17 00:00:00 2001 From: Timur Zununbekov Date: Wed, 13 Mar 2024 18:19:14 +0600 Subject: [PATCH] Run "apt-get update" before packages installation --- .github/workflows/build-packages.yml | 1 + .github/workflows/release.yml | 2 ++ .github/workflows/tests-and-linters.yml | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index cb938b7c04..7ff3df4349 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -112,6 +112,7 @@ jobs: - name: Setup FPM run: | + sudo apt-get update sudo apt-get install ruby-dev build-essential sudo gem i fpm -f diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5056fc8d50..7c8341ccf1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,6 +73,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Setup build environment run: | + sudo apt-get update sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import # workaround for expired key until it gets updated @@ -123,6 +124,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Setup build environment run: | + sudo apt-get update sudo apt-get install devscripts build-essential lintian dput dh-make python3-paramiko echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import # workaround for expired key until it gets updated diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index b7d0a13316..7f7021f4fe 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -17,7 +17,9 @@ jobs: go-version: '1.21.x' - name: Install protoc - run: sudo apt install -y protobuf-compiler + run: | + sudo apt-get update + sudo apt-get install -y protobuf-compiler - name: Unit tests and linters run: |