[ci] Use sccache for RobotPy build (#7915)

Also uses Artifactory to store the caches.
This commit is contained in:
Gold856
2025-04-22 21:27:20 +00:00
committed by GitHub
parent 21d921184a
commit 9c60da1319

View File

@@ -169,22 +169,8 @@ jobs:
with:
python-version: 3.13
#
# Setup build caching
#
- name: Set ccache size
shell: bash
id: ccache
run: echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
- name: Setup ccache
# uses: hendrikmuhs/ccache-action@v1.2.10
uses: robotpy/ccache-action@fork
with:
key: ubuntu-22.04-3.13
variant: ccache
max-size: ${{ steps.ccache.outputs.max_size }}
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Install deps
shell: bash
@@ -203,4 +189,8 @@ jobs:
./rdev.sh ci run
env:
RPYBUILD_STRIP_LIBPYTHON: "1"
RPYBUILD_CC_LAUNCHER: ccache
RPYBUILD_CC_LAUNCHER: sccache
SCCACHE_WEBDAV_ENDPOINT: "https://frcmaven.wpi.edu/artifactory/wpilib-generic-cache-cmake-local"
SCCACHE_WEBDAV_KEY_PREFIX: "sccache-robotpy"
SCCACHE_WEBDAV_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}