@@ -14,6 +14,10 @@ concurrency:
14
14
group : ${{ github.ref }}
15
15
cancel-in-progress : true
16
16
17
+ env :
18
+ SCCACHE_WEBDAV_ENDPOINT : " https://frcmaven.wpi.edu/artifactory/wpilib-generic-cache-cmake-local"
19
+ SCCACHE_WEBDAV_KEY_PREFIX : " sccache-robotpy"
20
+
17
21
jobs :
18
22
# This job limits concurrency on the default branch
19
23
# - we want it to run so it can populate ccache, but we typically
@@ -88,24 +92,29 @@ jobs:
88
92
# Setup build caching
89
93
#
90
94
91
- - name : Set ccache size
95
+ - name : Set ccache params
92
96
shell : bash
93
97
id : ccache
94
98
run : |
95
99
if [[ "${{ runner.os }}" == "Windows" ]]; then
96
- echo "MAX_SIZE=1200M " >> $GITHUB_OUTPUT
100
+ echo "VARIANT=sccache " >> $GITHUB_OUTPUT
97
101
else
102
+ echo "VARIANT=ccache" >> $GITHUB_OUTPUT
98
103
echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
99
104
fi
100
105
101
106
- name : Setup ccache
102
- # uses: hendrikmuhs/ ccache[email protected]
103
- uses : robotpy /ccache-action@fork
107
+ if : steps. ccache.outputs.variant == 'ccache'
108
+ uses : hendrikmuhs /ccache-action@v1.2
104
109
with :
105
110
key : ${{ matrix.os }}-${{ matrix.python_version }}
106
111
variant : ccache
107
112
max-size : ${{ steps.ccache.outputs.max_size }}
108
113
114
+ - name : Setup sccache
115
+ if : steps.ccache.outputs.variant == 'sccache'
116
+ uses :
mozilla-actions/[email protected]
117
+
109
118
- name : Install deps
110
119
shell : bash
111
120
run : |
@@ -122,7 +131,9 @@ jobs:
122
131
./rdev.sh ci run
123
132
env :
124
133
RPYBUILD_STRIP_LIBPYTHON : " 1"
125
- RPYBUILD_CC_LAUNCHER : ccache
134
+ RPYBUILD_CC_LAUNCHER : ${{ steps.ccache.outputs.variant }}
135
+ SCCACHE_WEBDAV_USERNAME : ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
136
+ SCCACHE_WEBDAV_PASSWORD : ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
126
137
127
138
- uses : actions/upload-artifact@v4
128
139
with :
0 commit comments