Skip to content

Commit d26214b

Browse files
skip ccache on arm64
1 parent 6ef0df0 commit d26214b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/libc-fullbuild-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
# frequent small object writes.
3737
- name: Setup ccache
3838
uses: hendrikmuhs/[email protected]
39+
if: runner.arch == 'X64'
3940
with:
4041
max-size: 1G
4142
key: libc_fullbuild_${{ matrix.c_compiler }}
@@ -46,10 +47,16 @@ jobs:
4647
# - Debian has a multilib setup, so we need to symlink the asm directory.
4748
# For more information, see https://wiki.debian.org/Multiarch/LibraryPathOverview
4849
- name: Prepare dependencies (Ubuntu)
50+
shell: bash
4951
run: |
5052
sudo apt-get update
5153
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build linux-libc-dev
5254
sudo ln -sf /usr/include/$(uname -p)-linux-gnu/asm /usr/include/asm
55+
if [[ $(uname -m) == 'aarch64' ]]; then
56+
wget https://github.com/mozilla/sccache/releases/download/v0.9.1/sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
57+
tar xvaf sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
58+
sudo cp sccache-v0.9.1-aarch64-unknown-linux-musl/sccache /usr/bin
59+
fi
5360
5461
- name: Set reusable strings
5562
id: strings

.github/workflows/libc-overlay-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
# frequent small object writes.
5252
- name: Setup ccache
5353
uses: hendrikmuhs/ccache-action@v1
54+
if: runner.arch == 'X64'
5455
with:
5556
max-size: 1G
5657
key: libc_overlay_build_${{ matrix.os }}_${{ matrix.compiler.c_compiler }}
@@ -62,6 +63,11 @@ jobs:
6263
run: |
6364
sudo apt-get update
6465
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build
66+
if [[ $(uname -m) == 'aarch64' ]]; then
67+
wget https://github.com/mozilla/sccache/releases/download/v0.9.1/sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
68+
tar xvaf sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
69+
sudo cp sccache-v0.9.1-aarch64-unknown-linux-musl/sccache /usr/bin
70+
fi
6571
6672
# Chocolatey is shipped with Windows runners. Windows Server 2025 recommends WinGet.
6773
# Consider migrating to WinGet when Windows Server 2025 is available.

0 commit comments

Comments
 (0)