Skip to content

Commit 8d04169

Browse files
committed
ci: Use sccache on Windows again
This partially reverts 2bc87c0.
1 parent 8b70363 commit 8d04169

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/dist.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,29 @@ jobs:
8888
# Setup build caching
8989
#
9090

91-
- name: Set ccache size
91+
- name: Set ccache params
9292
shell: bash
9393
id: ccache
9494
run: |
9595
if [[ "${{ runner.os }}" == "Windows" ]]; then
96-
echo "MAX_SIZE=1200M" >> $GITHUB_OUTPUT
96+
echo "VARIANT=sccache" >> $GITHUB_OUTPUT
9797
else
98+
echo "VARIANT=ccache" >> $GITHUB_OUTPUT
9899
echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
99100
fi
100101
101102
- name: Setup ccache
102-
# uses: hendrikmuhs/ccache[email protected]
103-
uses: robotpy/ccache-action@fork
103+
if: steps.ccache.outputs.variant == 'ccache'
104+
uses: hendrikmuhs/ccache-action@v1.2
104105
with:
105106
key: ${{ matrix.os }}-${{ matrix.python_version }}
106107
variant: ccache
107108
max-size: ${{ steps.ccache.outputs.max_size }}
108109

110+
- name: Setup sccache
111+
if: steps.ccache.outputs.variant == 'sccache'
112+
uses: mozilla-actions/[email protected]
113+
109114
- name: Install deps
110115
shell: bash
111116
run: |
@@ -122,7 +127,7 @@ jobs:
122127
./rdev.sh ci run
123128
env:
124129
RPYBUILD_STRIP_LIBPYTHON: "1"
125-
RPYBUILD_CC_LAUNCHER: ccache
130+
RPYBUILD_CC_LAUNCHER: ${{ steps.ccache.outputs.variant }}
126131

127132
- uses: actions/upload-artifact@v4
128133
with:

0 commit comments

Comments
 (0)