mirror of
https://github.com/Xevion/byte-me.git
synced 2026-01-31 06:23:50 -06:00
ci: use official sccache github action
This commit is contained in:
Vendored
+7
-11
@@ -7,9 +7,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
RUSTC_WRAPPER: sccache
|
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
|
||||||
SCCACHE_CACHE_SIZE: "2G"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -46,15 +43,14 @@ jobs:
|
|||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Install sccache
|
- name: Run sccache-cache only on non-release runs
|
||||||
uses: taiki-e/install-action@sccache
|
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
|
|
||||||
- name: Configure sccache
|
- name: Set Rust caching env vars only on non-release runs
|
||||||
uses: actions/github-script@v7
|
run: |
|
||||||
with:
|
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||||
script: |
|
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||||
core.exportVariable("ACTIONS_RESULTS_URL", process.env.ACTIONS_RESULTS_URL || "");
|
|
||||||
core.exportVariable("ACTIONS_RUNTIME_TOKEN", process.env.ACTIONS_RUNTIME_TOKEN || "");
|
|
||||||
|
|
||||||
- name: Rust cache
|
- name: Rust cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user