File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 66 - ' .github/workflows/build.yml'
77 workflow_dispatch :
88
9+ env :
10+ CCACHE_DIR : /home/builder/.ccache
11+
912jobs :
1013 build :
1114 name : linux-cachyos
2932 pacman-key --init
3033 pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com
3134 pacman-key --lsign-key F3B607488DB35A47
32- pacman -Syu --noconfirm
35+ pacman -Syu --noconfirm --needed ccache
3336
3437 # Setup builder user
3538 useradd builder -m
4144
4245 # Setup a packager name to indicate that kernel has built with CI
4346 sed -i 's/#PACKAGER=".*"/PACKAGER="CachyOS GitHub Actions"/g' /etc/makepkg.conf
47+
48+ # Setup ccache
49+ sed -i 's|!ccache|ccache|' /etc/makepkg.conf
50+ sudo -u builder mkdir -p ${{ env.CCACHE_DIR }}
51+ - name : Setup ccache
52+ id : cache
53+ uses : actions/cache@v4
54+ with :
55+ path : ${{ env.CCACHE_DIR }}
56+ key : ccache-${{ matrix.toolchain }}-${{ github.run_id }}
57+ restore-keys : |
58+ ccache-${{ matrix.toolchain }}
4459 - name : Build package (${{ matrix.toolchain }})
4560 id : makepkg
4661 env :
You can’t perform that action at this time.
0 commit comments