File tree Expand file tree Collapse file tree 4 files changed +5
-15
lines changed Expand file tree Collapse file tree 4 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 26
26
run : npm run fmt:check
27
27
28
28
test-action :
29
- runs-on : ${{ matrix.os }}
30
- strategy :
31
- matrix :
32
- os : [ubuntu-latest, windows-latest]
29
+ runs-on : ubuntu-latest
33
30
steps :
34
31
- uses : actions/checkout@v3
35
32
38
35
shell : bash
39
36
run : |
40
37
snfoundry_version=$(curl -s https://api.github.com/repos/foundry-rs/starknet-foundry/releases/latest | grep tarball_url | awk -F '/' '{print $8}' | tr -d '",')
41
- version=$(curl -s https://raw.githubusercontent.com/foundry-rs/starknet-foundry/$snfoundry_version/.tool-versions | awk '{print $2}')
38
+ version=$(curl -s https://raw.githubusercontent.com/foundry-rs/starknet-foundry/$snfoundry_version/.tool-versions | grep '^scarb' | awk '{print $2}')
42
39
43
40
echo "scarbVersion=$version" >> "$GITHUB_OUTPUT"
44
41
- name : Setup Scarb
62
59
working-directory : myproject
63
60
64
61
test-action-with-tools-file :
65
- runs-on : ${{ matrix.os }}
66
- strategy :
67
- matrix :
68
- os : [ubuntu-latest, windows-latest]
62
+ runs-on : ubuntu-latest
69
63
steps :
70
64
- uses : actions/checkout@v3
71
65
Original file line number Diff line number Diff line change @@ -29949,8 +29949,6 @@ function getOsPlatform() {
29949
29949
return "unknown-linux-gnu";
29950
29950
case "darwin":
29951
29951
return "apple-darwin";
29952
- case "win32":
29953
- return "pc-windows-msvc";
29954
29952
default:
29955
29953
throw new Error(`unsupported host platform: ${platform}`);
29956
29954
}
@@ -29969,7 +29967,7 @@ async function downloadStarknetFoundry(repo, version) {
29969
29967
const triplet = getOsTriplet();
29970
29968
const tag = versionWithPrefix(version);
29971
29969
const basename = `starknet-foundry-${tag}-${triplet}`;
29972
- const extension = triplet.includes("-windows-") ? "zip" : "tar.gz";
29970
+ const extension = "tar.gz";
29973
29971
const url = `https://github.com/${repo}/releases/download/${tag}/${basename}.${extension}`;
29974
29972
29975
29973
core.info(`Downloading Starknet Foundry from ${url}`);
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export async function downloadStarknetFoundry(repo, version) {
10
10
const triplet = getOsTriplet ( ) ;
11
11
const tag = versionWithPrefix ( version ) ;
12
12
const basename = `starknet-foundry-${ tag } -${ triplet } ` ;
13
- const extension = triplet . includes ( "-windows-" ) ? "zip" : "tar.gz" ;
13
+ const extension = "tar.gz" ;
14
14
const url = `https://github.com/${ repo } /releases/download/${ tag } /${ basename } .${ extension } ` ;
15
15
16
16
core . info ( `Downloading Starknet Foundry from ${ url } ` ) ;
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ export function getOsPlatform() {
25
25
return "unknown-linux-gnu" ;
26
26
case "darwin" :
27
27
return "apple-darwin" ;
28
- case "win32" :
29
- return "pc-windows-msvc" ;
30
28
default :
31
29
throw new Error ( `unsupported host platform: ${ platform } ` ) ;
32
30
}
You can’t perform that action at this time.
0 commit comments