Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit db7cf7a

Browse files
committed
Multi-OS testing for cache usage
1 parent a02b8c4 commit db7cf7a

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ jobs:
1818
- run: npm run test
1919

2020
install_from_tool_cache:
21-
runs-on: ubuntu-latest
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os:
25+
- ubuntu-latest
26+
- ubuntu-16.04
27+
- macOS-latest
28+
- windows-latest
2229
steps:
2330
- uses: actions/checkout@v2
2431
- name: Install sccache

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/download.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ function getExt(): string {
3333

3434
async function resolveVersion(crate: string): Promise<string> {
3535
const url = `https://crates.io/api/v1/crates/${crate}`;
36-
const client = new http.HttpClient("@actions-rs (https://github.com/actions-rs/)");
36+
const client = new http.HttpClient(
37+
"@actions-rs (https://github.com/actions-rs/)"
38+
);
3739

3840
const resp: any = await client.getJson(url);
3941
if (resp.result == null) {
@@ -62,6 +64,8 @@ function buildUrl(crate: string, version: string): string {
6264
const runner = getRunner();
6365
const ext = getExt();
6466

67+
core.debug(`Determined current Actions runner OS: ${runner}`);
68+
6569
return `https://s3.${s3Region}.amazonaws.com/${s3Bucket}/${crate}/${runner}/${crate}-${version}${ext}`;
6670
}
6771

0 commit comments

Comments
 (0)