Skip to content

Commit feb3771

Browse files
committed
fix: reactivate ccache on CI builds
set CCACHE_DIR in env for all steps to look for it inside the /alpine chroot
1 parent 1002b7a commit feb3771

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,17 @@ jobs:
5151
- target: aarch64-linux-musl
5252
output: arm_64
5353
fail-fast: true
54+
env:
55+
CCACHE_DIR: /alpine/root/.cache/ccache
56+
XZ_OPT: -9e -T0
57+
TARGET: ${{ matrix.target }}
5458
steps:
5559
- name: Checkout repository
5660
uses: actions/checkout@v4
5761
with:
5862
fetch-depth: 0
63+
- name: ccache
64+
uses: hendrikmuhs/ccache-action@v1.2
5965
- name: Build chroot ${{ matrix.target }}
6066
run: |
6167
sudo make chroot
@@ -70,9 +76,6 @@ jobs:
7076
run: |
7177
/alpine/enter-chroot make prepare
7278
- name: Compress the package
73-
env:
74-
XZ_OPT: -9e -T0
75-
TARGET: ${{ matrix.target }}
7679
run: |
7780
echo "Compressing: dyne-gcc-musl-${{ matrix.output }}.tar.xz"
7881
tar -cJf dyne-gcc-musl-${{ matrix.output }}.tar.xz dyne

0 commit comments

Comments
 (0)