30 Commits
v0.0.8 ... main

Author SHA1 Message Date
Sylvestre Ledru
cbf689686c Merge pull request #240 from Mozilla-Actions/dependabot/npm_and_yarn/ts-jest-29.4.6
Bump ts-jest from 29.3.2 to 29.4.6
2026-03-04 15:54:42 +01:00
dependabot[bot]
b08827a805 Bump ts-jest from 29.3.2 to 29.4.6
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.3.2 to 29.4.6.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.2...v29.4.6)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.6
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 22:32:38 +00:00
Sylvestre Ledru
c41c02b356 Merge pull request #232 from Mozilla-Actions/dependabot/github_actions/github-actions-76468cb07f
Bump actions/checkout from 5 to 6 in the github-actions group
2026-02-28 21:26:49 +01:00
Sylvestre Ledru
1b907c38b9 Merge pull request #239 from Mozilla-Actions/dependabot/npm_and_yarn/multi-6331abc659
Bump minimatch
2026-02-28 21:26:41 +01:00
dependabot[bot]
17f1652a56 Bump minimatch
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 9.0.4 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 9.0.5 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 5.1.6 to 5.1.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 5.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 02:55:49 +00:00
dependabot[bot]
9d29337feb Bump actions/checkout from 5 to 6 in the github-actions group
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 23:36:29 +00:00
Sylvestre Ledru
91401894d5 Merge pull request #233 from Mozilla-Actions/dependabot/npm_and_yarn/actions/github-6.0.1
Bump @actions/github from 6.0.0 to 6.0.1
2026-02-18 16:05:50 +01:00
dependabot[bot]
09ad278de7 Bump @actions/github from 6.0.0 to 6.0.1
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 6.0.0 to 6.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 01:58:40 +00:00
Sylvestre Ledru
bafd42bd91 Merge pull request #226 from Mozilla-Actions/dependabot/github_actions/github-actions-5e51f74d5c
Bump actions/setup-node from 5 to 6 in the github-actions group
2025-11-01 23:43:33 +01:00
Sylvestre Ledru
031a5729cc Merge pull request #227 from Mozilla-Actions/dependabot/npm_and_yarn/eslint-plugin-import-2.32.0
Bump eslint-plugin-import from 2.31.0 to 2.32.0
2025-11-01 23:43:21 +01:00
Sylvestre Ledru
944c5dd5a3 Merge pull request #228 from Mozilla-Actions/dependabot/npm_and_yarn/actions/io-2.0.0
Bump @actions/io from 1.1.3 to 2.0.0
2025-11-01 23:43:08 +01:00
dependabot[bot]
0ee70161fd Bump @actions/io from 1.1.3 to 2.0.0
Bumps [@actions/io](https://github.com/actions/toolkit/tree/HEAD/packages/io) from 1.1.3 to 2.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/io/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/io)

---
updated-dependencies:
- dependency-name: "@actions/io"
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 22:02:12 +00:00
dependabot[bot]
f3c286174b Bump eslint-plugin-import from 2.31.0 to 2.32.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.31.0...v2.32.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-version: 2.32.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 22:02:07 +00:00
dependabot[bot]
9b4b4271a2 Bump actions/setup-node from 5 to 6 in the github-actions group
Bumps the github-actions group with 1 update: [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/setup-node` from 5 to 6
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 22:37:14 +00:00
Sylvestre Ledru
362fd1f28a Merge pull request #212 from wetheredge/tweak-notice
Add job id to annotation title
2025-10-24 10:19:48 +02:00
Wren Etheredge
306a86b3f6 Conditional plurals in the annotation 2025-10-23 10:57:48 +02:00
Wren Etheredge
afdb6b9946 Add job id to annotation title 2025-10-23 10:57:48 +02:00
dependabot[bot]
f136be3826 Bump the github-actions group across 1 directory with 2 updates (#220)
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/setup-node` from 4 to 5
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 10:57:36 +02:00
dependabot[bot]
8690384f78 Bump eslint-config-prettier from 10.1.2 to 10.1.8 (#214)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 10.1.2 to 10.1.8.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.1.2...v10.1.8)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-version: 10.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 10:45:09 +02:00
dependabot[bot]
bb39a37bf6 Bump eslint-plugin-prettier from 5.2.5 to 5.5.4 (#221)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.5 to 5.5.4.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.5...v5.5.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.4
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 10:45:00 +02:00
dependabot[bot]
4097539ece Bump ts-jest from 29.2.6 to 29.3.2 (#200)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.2.6 to 29.3.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.2.6...v29.3.2)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.3.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 08:52:12 +02:00
dependabot[bot]
e54ef79281 Bump eslint-config-prettier from 9.1.0 to 10.1.2 (#201)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.1.0 to 10.1.2.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.1.2)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-version: 10.1.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 08:51:56 +02:00
dependabot[bot]
b15a83f9da Bump undici from 5.28.5 to 5.29.0 (#204)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.5 to 5.29.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.5...v5.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 5.29.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 08:51:48 +02:00
dependabot[bot]
21fd90ad71 Bump @types/node from 22.13.0 to 22.13.17 (#194)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.13.0 to 22.13.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 22.13.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 22:14:32 +02:00
dependabot[bot]
5418419c3e Bump typescript from 5.7.2 to 5.8.2 (#195)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.2 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.2...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 22:14:23 +02:00
dependabot[bot]
80b4af770d Bump eslint-plugin-prettier from 5.2.3 to 5.2.5 (#196)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.3 to 5.2.5.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.3...v5.2.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.2.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 22:14:12 +02:00
Brian Michel
407a484056 Merge pull request #193 from brianmichel/brian/use-tar-on-all-platforms
Use tar on all platforms
2025-04-01 18:43:13 +02:00
Sylvestre Ledru
7d986dd989 Merge pull request #192 from sylvestre/release
prepare release 0.0.9 + force github action 2
2025-03-25 14:28:36 +01:00
Sylvestre Ledru
c3f03b40d2 prepare release 0.0.9 2025-03-24 14:07:59 +01:00
Sylvestre Ledru
213d335d8b Force version v2 of github action.
Closes: #191
2025-03-24 14:04:27 +01:00
8 changed files with 1070 additions and 517 deletions

View File

@@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 18.x
cache: npm
@@ -52,10 +52,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 18.x
cache: npm
@@ -77,10 +77,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 18.x
cache: npm

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

1512
package-lock.json generated

File diff suppressed because it is too large Load Diff

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": {
@@ -29,24 +29,24 @@
"homepage": "https://github.com/mozilla-actions/sccache-action#readme",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@actions/io": "^1.1.3",
"@actions/github": "^6.0.1",
"@actions/io": "^2.0.0",
"@actions/tool-cache": "^2.0.2"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.13.0",
"@types/node": "^22.13.17",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.11.0",
"@vercel/ncc": "^0.38.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"prettier": "^3.4.2",
"ts-jest": "^29.2.6",
"typescript": "^5.7.2"
"prettier": "^3.5.3",
"ts-jest": "^29.4.6",
"typescript": "^5.8.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(
@@ -157,12 +160,7 @@ function getPlatform(): Error | string {
}
function getExtension(): string {
switch (process.platform) {
case 'win32':
return 'zip';
default:
return 'tar.gz';
}
return 'tar.gz';
}
setup().catch(err => {

View File

@@ -13,6 +13,7 @@
// limitations under the License.
import * as core from '@actions/core';
import {context} from '@actions/github';
import * as exec from '@actions/exec';
import {SummaryTableRow} from '@actions/core/lib/summary';
@@ -50,8 +51,9 @@ async function show_stats() {
const formatted_stats = format_json_stats(stats);
core.notice(formatted_stats.notice, {
title: 'sccache stats'
title: `sccache stats - ${context.job}`
});
core.info('\nFull human-readable stats:');
core.info(human_stats);
@@ -131,7 +133,10 @@ function format_json_stats(stats: Stats): {
stats.stats.compiler_write_duration
);
const notice = `${ratio}% - ${cache_hit_count} hits, ${cache_miss_count} misses, ${cache_error_count} errors`;
const notice_hit = plural(cache_hit_count, 'hit');
const notice_miss = plural(cache_miss_count, 'miss', 'misses');
const notice_error = plural(cache_error_count, 'error');
const notice = `${ratio}% - ${notice_hit}, ${notice_miss}, ${notice_error}`;
const table = [
[{data: 'Cache hit %', header: true}, {data: `${ratio}%`}],
@@ -167,3 +172,7 @@ function format_json_stats(stats: Stats): {
function percentage(x: number, y: number): number {
return Math.round((x / y) * 100 || 0);
}
function plural(count: number, base: string, plural = base + 's'): string {
return `${count} ${count === 1 ? base : plural}`;
}