Skip to content

Commit

Permalink
[CI] Fix installing apt dependencies by using action. (#862)
Browse files Browse the repository at this point in the history
This PR how CI installs dependencies via apt: the previous code simply
ran apt-get install without prio apt-get update. This may make CI break,
which happened for some PRs, if the GH runner has a version of a package
in cache that just got updated such that the cached URL is invalid and
the package cannot be installed. By using a proper GH action, not only
is that taken care of but the package is even cached such that
installing it may be a bit faster.

Signed-off-by: Ingo Müller <[email protected]>
  • Loading branch information
ingomueller-net authored Feb 11, 2025
1 parent d9ccecf commit 95915e5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/buildAndTestStructured.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ jobs:
path: sandbox/.git
key: git-folder

- name: Install protobuf
run: |
sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Install libcurl
run: |
sudo apt-get install -y libcurl4-gnutls-dev
- name: Install dependencies from apt
uses: awalsh128/[email protected]
with:
packages: protobuf-compiler libprotobuf-dev libcurl4-gnutls-dev
version: 1.0

- name: Checkout project
uses: actions/checkout@v3
Expand Down

0 comments on commit 95915e5

Please sign in to comment.