35 Commits

Author SHA1 Message Date
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
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
213d335d8b Force version v2 of github action.
Closes: #191
2025-03-24 14:04:27 +01:00
Sylvestre Ledru
8bd7e91bd3 gha: adjust the variable for deprecation
See: https://github.com/mozilla/sccache/issues/2351
2025-03-07 10:17:47 +01:00
Trim21
25839b6484 add disable_annotations options to disable stats report (#162) 2024-11-27 14:16:18 +01:00
Jonathan Dygert
c83ccfeb86 Add arm support (#159) 2024-11-27 10:45:44 +08:00
Paul Loberg
4a60710ed8 Set baseUrl for Octokit to make it work on GitHub Enterprise Server 2024-09-27 10:57:03 +02:00
110416
340520239a fix: avoid downloading package when local cache exists (#123)
* fix: avoid downloading package when local cache exists

As mentioned in
https://github.com/Mozilla-Actions/sccache-action/issues/107,
`setup` function didn't use `find` function even though it uses
`cacheDir` to store downloaded files, which leads to redundant download.

It is not significant on GitHub-hosted runners because
`cacheDir` stores files in local file system, which is ephemeral.
However, it wastes time on self-hosted runners.

This commit adds a step to search local file system cache for sccache as
well as splitting download procedure to a dedicated function.

* fix: explicit comparison for boolean-like value
2024-07-18 12:03:11 +02:00
110416
bbcfdc3c11 fix: string interpolation (#122)
* fix: String interpolation uses backtick

* chore: fmt

* chore: fmt
2024-06-18 09:45:44 +02:00
Thomas Forbes
ab76965574 Add % to cache hit table 2024-05-12 22:05:24 +01:00
Thomas Forbes
2f1ba39e7a Calculate percentage, add JSON stats output 2024-05-12 21:00:34 +01:00
Tom Forbes
d947000745 Output sccache stats as a notice and a summary table 2024-05-12 20:19:14 +01:00
Raphaël Gomès
8ebd5a4380 chore: fix a typo in a comment 2024-04-23 11:04:15 +02:00
Sylvestre Ledru
634be340e7 Simplify the checksum check code a bit (#29) 2023-03-22 22:02:25 +08:00
miles
36cc091a25 Use the latest version of sccache if no version is specified (#27) 2023-03-22 18:37:23 +08:00
Sylvestre Ledru
27ad55f054 verify the checksum 2023-03-21 23:12:21 +01:00
Sylvestre Ledru
cd0b068220 Fix a typo 2023-03-08 21:36:05 +01:00
Xuanwo
c94e27bef2 Let's go
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:43:50 +08:00
Xuanwo
8834139bee FIx typo
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:42:26 +08:00
Xuanwo
be7e4cdfae Use getExecOutput instead
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:32:20 +08:00
Xuanwo
bdadfb55a2 Use actions exec instead
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:31:10 +08:00
Xuanwo
4a85108bfd Fix build on windows
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:21:55 +08:00
Xuanwo
4e6fd0b7a0 Try again
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:10:22 +08:00
Xuanwo
0b2476c151 Add post hook support
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 11:05:43 +08:00
Xuanwo
a3137a0ec8 feat: Add native gha cache support
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-11 08:44:40 +08:00
Xuanwo
82bd256572 Add lint
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-10 12:39:09 +08:00
Xuanwo
835e255d1d Address comments
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-10 12:31:40 +08:00
Xuanwo
955de5983e Let's go
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:51:03 +08:00
Xuanwo
a4210c39b2 Fix typo
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:50:00 +08:00
Xuanwo
a2811a1f48 test
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:47:21 +08:00
Xuanwo
5b9624008f Test
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:43:42 +08:00
Xuanwo
18887b64db Fix build
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:34:11 +08:00
Xuanwo
83838b1674 Fix build
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:32:10 +08:00
Xuanwo
4e31d5bef4 feat: Implement basic sccache action support
Signed-off-by: Xuanwo <github@xuanwo.io>
2023-01-09 23:29:45 +08:00