We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72c8eb commit 6688556Copy full SHA for 6688556
.github/workflows/build.yml
@@ -43,17 +43,21 @@ jobs:
43
44
# Cache APT packages
45
- name: Cache APT Packages
46
- uses: actions/cache@v4
+ id: cache-apt
47
+ uses: awalsh128/cache-apt-pkgs-action@latest
48
with:
- path: /var/cache/apt/archives
49
- key: apt-packages-${{ runner.os }}-v1
50
- save-always: true
+ packages: repo python3 python-is-python3 ccache
+ version: 1.0
51
52
- name: Install Repo and Python
53
+ if: steps.cache-apt.outputs.cache-hit != 'true'
54
run: |
55
# Install dependencies
56
sudo apt update
57
sudo apt install repo python3 python-is-python3 ccache
58
+
59
+ - name: Setup ccache
60
+ run: |
61
echo "CCACHE_DIR=$(pwd)/ccache" >> $GITHUB_ENV
62
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
63
0 commit comments