Commit 31eee16
authored
Improve cache for architectures (#26)
* Add runner.arch for cache.key
Users might use this action to prepare multiple jobs
with the same OS but different architectures, for example,
macOS' x86_64 and arm64, Linux's x86_64 and arm64 and even
Windows x86_64 and arm64.
This CL just add architecture information of runner
to make cache workable for this special scenario.
Signed-off-by: utzcoz <utzcoz@outlook.com>
* ci: Add macos-14, macos + arm64 runner target
It can be used to test cache between same OS but different
architectures.
This CL also adds a small step to print runner's
os and arch information for debug purpose.
Signed-off-by: utzcoz <utzcoz@outlook.com>
* ci: Enable pull_request on main branch to trigger CI for PR
Signed-off-by: utzcoz <utzcoz@outlook.com>
---------
Signed-off-by: utzcoz <utzcoz@outlook.com>1 parent 466e805 commit 31eee16
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments