Skip to content

Commit 7224c5e

Browse files
authored
Merge pull request #164 from robotpy/ci-sccache-linux
ci: Use sccache for Linux amd64 builds
2 parents 5f63797 + f60437f commit 7224c5e

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/dist.yml

+1-16
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,11 @@ jobs:
9898
env:
9999
OS: ${{ runner.os }}
100100
run: |
101-
if [[ "$OS" != "Linux" ]]; then
102-
echo "VARIANT=sccache" >> $GITHUB_OUTPUT
103-
else
104-
echo "VARIANT=ccache" >> $GITHUB_OUTPUT
105-
echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
106-
fi
107101
if [[ "$OS" == "macOS" ]]; then
108102
echo "SCCACHE_CACHE_MULTIARCH=1" >> $GITHUB_ENV
109103
fi
110104
111-
- name: Setup ccache
112-
if: steps.ccache.outputs.variant == 'ccache'
113-
uses: hendrikmuhs/[email protected]
114-
with:
115-
key: ${{ matrix.os }}-${{ matrix.python_version }}
116-
variant: ccache
117-
max-size: ${{ steps.ccache.outputs.max_size }}
118-
119105
- name: Setup sccache
120-
if: steps.ccache.outputs.variant == 'sccache'
121106
uses: mozilla-actions/[email protected]
122107

123108
- name: Install deps
@@ -136,7 +121,7 @@ jobs:
136121
./rdev.sh ci run
137122
env:
138123
RPYBUILD_STRIP_LIBPYTHON: "1"
139-
RPYBUILD_CC_LAUNCHER: ${{ steps.ccache.outputs.variant }}
124+
RPYBUILD_CC_LAUNCHER: sccache
140125
SCCACHE_WEBDAV_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
141126
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
142127

0 commit comments

Comments
 (0)