Skip to content

Commit c01af71

Browse files
committed
ci: Set sccache multiarch on macOS only
1 parent 452b4a1 commit c01af71

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dist.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,18 @@ jobs:
9595
- name: Set ccache params
9696
shell: bash
9797
id: ccache
98+
env:
99+
OS: ${{ runner.os }}
98100
run: |
99-
if [[ "${{ runner.os }}" != "Linux" ]]; then
101+
if [[ "$OS" != "Linux" ]]; then
100102
echo "VARIANT=sccache" >> $GITHUB_OUTPUT
101103
else
102104
echo "VARIANT=ccache" >> $GITHUB_OUTPUT
103105
echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
104106
fi
107+
if [[ "$OS" == "macOS" ]]; then
108+
echo "SCCACHE_CACHE_MULTIARCH=1" >> $GITHUB_ENV
109+
fi
105110
106111
- name: Setup ccache
107112
if: steps.ccache.outputs.variant == 'ccache'
@@ -132,7 +137,6 @@ jobs:
132137
env:
133138
RPYBUILD_STRIP_LIBPYTHON: "1"
134139
RPYBUILD_CC_LAUNCHER: ${{ steps.ccache.outputs.variant }}
135-
SCCACHE_CACHE_MULTIARCH: "1"
136140
SCCACHE_WEBDAV_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
137141
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
138142

0 commit comments

Comments
 (0)