Skip to content

Commit 48e6dfd

Browse files
committed
Use cache-apt-pkgs-action
1 parent 804de92 commit 48e6dfd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ jobs:
2727
- uses: actions/checkout@v3
2828

2929
- if: matrix.os == 'ubuntu-20.04'
30-
name: Install Linux packages
31-
run: |
32-
sudo apt update
33-
sudo apt install -y clang zlib1g-dev libkrb5-dev libtinfo5
30+
name: Set up Linux dependencies
31+
uses: awalsh128/cache-apt-pkgs-action@latest
32+
with:
33+
packages: clang zlib1g-dev libkrb5-dev libtinfo5
34+
# Increment to invalidate the cache
35+
version: 1.0
36+
# Enables a workaround to attempt to run pre and post install scripts
37+
execute_install_scripts: true
38+
# Disables uploading logs as a build artifact
39+
debug: false
3440

3541
- name: Setup .NET
3642
uses: actions/setup-dotnet@v3

0 commit comments

Comments
 (0)