GeezerVison is showing github.com — Merge pull request #192 from sylvestre/release · Mozilla-Actions/sccache-action@7d986dd
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,15 +16,15 @@ Just copy and paste the following in your GitHub action: |
16 | 16 |
|
17 | 17 | ``` |
18 | 18 | - name: Run sccache-cache |
19 | | - |
| 19 | + |
20 | 20 | ``` |
21 | 21 |
|
22 | 22 | ### Conditionally run cache and enable it |
23 | 23 |
|
24 | 24 | ``` |
25 | 25 | - name: Run sccache-cache only on non-release runs |
26 | 26 | if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' |
27 | | - |
| 27 | + |
28 | 28 | - name: Set Rust caching env vars only on non-release runs |
29 | 29 | if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' |
30 | 30 | run: | |
@@ -38,7 +38,7 @@ Versions prior to sccache v0.10.0 probably will not work. |
38 | 38 |
|
39 | 39 | ``` |
40 | 40 | - name: Run sccache-cache |
41 | | - |
| 41 | + |
42 | 42 | with: |
43 | 43 | version: "v0.10.0" |
44 | 44 | ``` |
@@ -103,7 +103,7 @@ When using the action on GitHub Enterprise Server installations a valid GitHub.c |
103 | 103 |
|
104 | 104 | ``` |
105 | 105 | - name: Run sccache-cache |
106 | | - |
| 106 | + |
107 | 107 | with: |
108 | 108 | token: ${{ secrets.MY_GITHUB_TOKEN }} |
109 | 109 | ``` |
|
Collapse file
Copy file name to clipboardExpand all lines: dist/setup/index.js +3-3Lines changed: 3 additions & 3 deletions Collapse file
Copy file name to clipboardExpand all lines: dist/show_stats/index.js +3-3Lines changed: 3 additions & 3 deletions Collapse file
Copy file name to clipboardExpand all lines: package-lock.json +6-6Lines changed: 6 additions & 6 deletions Collapse file
Copy file name to clipboardExpand all lines: package.json +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | { |
2 | 2 | "name": "sccache-action", |
3 | | - "version": "0.0.8", |
| 3 | + "version": "0.0.9", |
4 | 4 | "description": "Github Action for Sccache", |
5 | 5 | "main": "dist/setup/index.js", |
6 | 6 | "engines": { |
|
45 | 45 | "eslint-plugin-prettier": "^5.2.3", |
46 | 46 | "jest": "^29.7.0", |
47 | 47 | "jest-circus": "^29.7.0", |
48 | | - "prettier": "^3.4.2", |
| 48 | + "prettier": "^3.5.3", |
49 | 49 | "ts-jest": "^29.2.6", |
50 | 50 | "typescript": "^5.7.2" |
51 | 51 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: src/setup.ts +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -66,6 +66,9 @@ async function setup() { |
66 | 66 | // Expose the sccache path as env. |
67 | 67 | core.exportVariable('SCCACHE_PATH', `${sccacheHome}/sccache`); |
68 | 68 |
|
| 69 | + // Force the github action v2 |
| 70 | + core.exportVariable('ACTIONS_CACHE_SERVICE_V2', `on`); |
| 71 | + |
69 | 72 | // Expose the gha cache related variable to make it easier for users to |
70 | 73 | // integrate with gha support. |
71 | 74 | core.exportVariable( |
|