mirror of
https://github.com/mozilla-actions/sccache-action
synced 2026-09-07 20:04:02 +00:00
Merge pull request #76 from nyurik/patch-1
Show conditional enabling of caching
This commit is contained in:
@@ -19,6 +19,19 @@ Just copy and paste the following in your GitHub action:
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
```
|
||||
|
||||
### Conditionally run cache and enable it
|
||||
|
||||
```
|
||||
- name: Run sccache-cache only on non-release runs
|
||||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- name: Set Rust caching env vars only on non-release runs
|
||||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
||||
run: |
|
||||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
|
||||
```
|
||||
|
||||
### Specify a given version of sccache
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user