Merge pull request #192 from sylvestre/release

prepare release 0.0.9 + force github action 2
This commit is contained in:
Sylvestre Ledru
2025-03-25 14:28:36 +01:00
committed by GitHub
6 changed files with 21 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ Just copy and paste the following in your GitHub action:
```
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.8
uses: mozilla-actions/sccache-action@v0.0.9
```
### 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
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
uses: mozilla-actions/sccache-action@v0.0.8
uses: mozilla-actions/sccache-action@v0.0.9
- name: Set Rust caching env vars only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
run: |
@@ -38,7 +38,7 @@ Versions prior to sccache v0.10.0 probably will not work.
```
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.8
uses: mozilla-actions/sccache-action@v0.0.9
with:
version: "v0.10.0"
```
@@ -103,7 +103,7 @@ When using the action on GitHub Enterprise Server installations a valid GitHub.c
```
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.8
uses: mozilla-actions/sccache-action@v0.0.9
with:
token: ${{ secrets.MY_GITHUB_TOKEN }}
```

6
dist/setup/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "sccache-action",
"version": "0.0.8",
"version": "0.0.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sccache-action",
"version": "0.0.8",
"version": "0.0.9",
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.11.1",
@@ -26,7 +26,7 @@
"eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"prettier": "^3.4.2",
"prettier": "^3.5.3",
"ts-jest": "^29.2.6",
"typescript": "^5.7.2"
},
@@ -5541,9 +5541,9 @@
}
},
"node_modules/prettier": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz",
"integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==",
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
"integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"

View File

@@ -1,6 +1,6 @@
{
"name": "sccache-action",
"version": "0.0.8",
"version": "0.0.9",
"description": "Github Action for Sccache",
"main": "dist/setup/index.js",
"engines": {
@@ -45,7 +45,7 @@
"eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"prettier": "^3.4.2",
"prettier": "^3.5.3",
"ts-jest": "^29.2.6",
"typescript": "^5.7.2"
}

View File

@@ -66,6 +66,9 @@ async function setup() {
// Expose the sccache path as env.
core.exportVariable('SCCACHE_PATH', `${sccacheHome}/sccache`);
// Force the github action v2
core.exportVariable('ACTIONS_CACHE_SERVICE_V2', `on`);
// Expose the gha cache related variable to make it easier for users to
// integrate with gha support.
core.exportVariable(