Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
SCCACHE_WEBDAV_ENDPOINT: "https://frcmaven.wpi.edu/artifactory/wpilib-generic-cache-cmake-local"
SCCACHE_WEBDAV_KEY_PREFIX: "sccache-robotpy"

jobs:
# This job limits concurrency on the default branch
# - we want it to run so it can populate ccache, but we typically
Expand Down Expand Up @@ -88,24 +92,29 @@ jobs:
# Setup build caching
#

- name: Set ccache size
- name: Set ccache params
shell: bash
id: ccache
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "MAX_SIZE=1200M" >> $GITHUB_OUTPUT
echo "VARIANT=sccache" >> $GITHUB_OUTPUT
else
echo "VARIANT=ccache" >> $GITHUB_OUTPUT
echo "MAX_SIZE=500M" >> $GITHUB_OUTPUT
fi

- name: Setup ccache
# uses: hendrikmuhs/ccache[email protected]
uses: robotpy/ccache-action@fork
if: steps.ccache.outputs.variant == 'ccache'
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.python_version }}
variant: ccache
max-size: ${{ steps.ccache.outputs.max_size }}

- name: Setup sccache
if: steps.ccache.outputs.variant == 'sccache'
uses: mozilla-actions/[email protected]

- name: Install deps
shell: bash
run: |
Expand All @@ -122,7 +131,9 @@ jobs:
./rdev.sh ci run
env:
RPYBUILD_STRIP_LIBPYTHON: "1"
RPYBUILD_CC_LAUNCHER: ccache
RPYBUILD_CC_LAUNCHER: ${{ steps.ccache.outputs.variant }}
SCCACHE_WEBDAV_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}

- uses: actions/upload-artifact@v4
with:
Expand Down
Loading