Some checks failed
Documentation / Build and Deploy Documentation (push) Successful in 26s
Checks / Prek / Pre-commit & Formatting (push) Successful in 34s
Release Docker Image / define-variables (push) Successful in 4s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Failing after 56s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Failing after 46s
Release Docker Image / merge (push) Has been skipped
Checks / Prek / Clippy and Cargo Tests (push) Failing after 1m6s
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@v8
|
|
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
|