mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 17:02:50 +02:00
Switch from mozilla-actions/sccache-action to git.tomfos.tr/tom/sccache-action@v1 which eliminates GitHub token requirements for downloading sccache binaries. Removes token input parameter and debug logging from sccache action, and simplifies setup-rust action by removing sccache token availability checks. This ensures reliable sccache access for all contributors regardless of repository permissions or rate limits.
23 lines
816 B
YAML
23 lines
816 B
YAML
name: sccache
|
|
description: |
|
|
Install sccache for caching builds in GitHub Actions.
|
|
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install sccache
|
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
|
- name: Configure sccache
|
|
uses: https://github.com/actions/github-script@v7
|
|
with:
|
|
script: |
|
|
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
|
|
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
- shell: bash
|
|
run: |
|
|
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
|
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
|
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
|
|
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
|
|
echo "CMAKE_CUDA_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
|