continuwuity/.forgejo/actions/sccache/action.yml
Renovate Bot 87892a9739
Some checks are pending
Release Docker Image / Create Max-Perf Manifest (push) Blocked by required conditions
Documentation / Build and Deploy Documentation (push) Successful in 1m7s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m21s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 8m54s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 13m54s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 11m10s
Release Docker Image / Create Multi-arch Release Manifest (push) Waiting to run
Release Docker Image / Build linux-amd64 (max-perf) (push) Waiting to run
Release Docker Image / Build linux-arm64 (max-perf) (push) Waiting to run
chore(deps): update https://github.com/actions/github-script action to v9
2026-04-10 08:21:00 +00:00

23 lines
859 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@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
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