mirror of
https://github.com/Mozilla-Actions/sccache-action.git
synced 2026-04-08 17:42:13 +08:00
12
README.md
12
README.md
@@ -16,7 +16,7 @@ Just copy and paste the following in your GitHub action:
|
|||||||
|
|
||||||
```
|
```
|
||||||
- name: Run sccache-cache
|
- name: Run sccache-cache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.7
|
uses: mozilla-actions/sccache-action@v0.0.8
|
||||||
```
|
```
|
||||||
|
|
||||||
### Conditionally run cache and enable it
|
### Conditionally run cache and enable it
|
||||||
@@ -24,7 +24,7 @@ Just copy and paste the following in your GitHub action:
|
|||||||
```
|
```
|
||||||
- name: Run sccache-cache only on non-release runs
|
- name: Run sccache-cache only on non-release runs
|
||||||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
||||||
uses: mozilla-actions/sccache-action@v0.0.7
|
uses: mozilla-actions/sccache-action@v0.0.8
|
||||||
- name: Set Rust caching env vars only on non-release runs
|
- name: Set Rust caching env vars only on non-release runs
|
||||||
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
|
||||||
run: |
|
run: |
|
||||||
@@ -34,11 +34,13 @@ Just copy and paste the following in your GitHub action:
|
|||||||
|
|
||||||
### Specify a given version of sccache
|
### Specify a given version of sccache
|
||||||
|
|
||||||
|
Versions prior to sccache v0.10.0 probably will not work.
|
||||||
|
|
||||||
```
|
```
|
||||||
- name: Run sccache-cache
|
- name: Run sccache-cache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.7
|
uses: mozilla-actions/sccache-action@v0.0.8
|
||||||
with:
|
with:
|
||||||
version: "v0.7.4"
|
version: "v0.10.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
### To get the execution stats
|
### To get the execution stats
|
||||||
@@ -101,7 +103,7 @@ When using the action on GitHub Enterprise Server installations a valid GitHub.c
|
|||||||
|
|
||||||
```
|
```
|
||||||
- name: Run sccache-cache
|
- name: Run sccache-cache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.7
|
uses: mozilla-actions/sccache-action@v0.0.8
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MY_GITHUB_TOKEN }}
|
token: ${{ secrets.MY_GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|||||||
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
File diff suppressed because one or more lines are too long
6
dist/show_stats/index.js
vendored
6
dist/show_stats/index.js
vendored
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "sccache-action",
|
"name": "sccache-action",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "sccache-action",
|
"name": "sccache-action",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sccache-action",
|
"name": "sccache-action",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"description": "Github Action for Sccache",
|
"description": "Github Action for Sccache",
|
||||||
"main": "dist/setup/index.js",
|
"main": "dist/setup/index.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -68,7 +68,10 @@ async function setup() {
|
|||||||
|
|
||||||
// Expose the gha cache related variable to make it easier for users to
|
// Expose the gha cache related variable to make it easier for users to
|
||||||
// integrate with gha support.
|
// integrate with gha support.
|
||||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
core.exportVariable(
|
||||||
|
'ACTIONS_RESULTS_URL',
|
||||||
|
process.env.ACTIONS_RESULTS_URL || ''
|
||||||
|
);
|
||||||
core.exportVariable(
|
core.exportVariable(
|
||||||
'ACTIONS_RUNTIME_TOKEN',
|
'ACTIONS_RUNTIME_TOKEN',
|
||||||
process.env.ACTIONS_RUNTIME_TOKEN || ''
|
process.env.ACTIONS_RUNTIME_TOKEN || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user