Skip to content

Commit 6242410

Browse files
committed
Fix APT package installation
1 parent 2048abb commit 6242410

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/actions/setup/action.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ runs:
1717
echo $HOME
1818
echo ${{ runner.os }}
1919
20-
- name: Cache apt packages on Linux
20+
- name: Cache APT packages
2121
if: runner.os == 'Linux'
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
24-
path: /var/cache/apt
25-
key: ${{ runner.os }}-apt-cache-${{ hashFiles('/var/lib/apt/lists/*') }}
24+
path: |
25+
/var/cache/apt/archives
26+
/var/lib/apt/lists
27+
key: ${{ runner.os }}-apt-${{ hashFiles('.github/actions/setup/apt-packages.txt') }}
2628
restore-keys: |
27-
${{ runner.os }}-apt-cache-
29+
${{ runner.os }}-apt-
2830
29-
- name: Install protobuf-compiler on Linux
31+
- name: Update and install APT packages
3032
if: runner.os == 'Linux'
3133
shell: bash
3234
run: |
3335
sudo apt-get update
34-
sudo apt-get install -y protobuf-compiler
36+
xargs -a apt-packages.txt sudo apt-get install -y
3537
3638
- uses: dtolnay/rust-toolchain@stable
3739
with:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
protobuf-compiler

0 commit comments

Comments
 (0)