mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-21 06:11:31 +08:00
fix(ci): skip remote sccache config for fork PRs (#388)
This commit is contained in:
@@ -7,7 +7,6 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_INCREMENTAL: "0"
|
||||
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SCCACHE_MEMCACHED_ENDPOINT: ${{ vars.SCCACHE_MEMCACHED_ENDPOINT }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -49,6 +48,10 @@ jobs:
|
||||
- name: Install tools
|
||||
run: mise install
|
||||
|
||||
- name: Configure sccache remote cache
|
||||
if: vars.SCCACHE_MEMCACHED_ENDPOINT != ''
|
||||
run: echo "SCCACHE_MEMCACHED_ENDPOINT=${{ vars.SCCACHE_MEMCACHED_ENDPOINT }}" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Cache Rust target and registry
|
||||
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user