File tree Expand file tree Collapse file tree 3 files changed +20
-23
lines changed
Expand file tree Collapse file tree 3 files changed +20
-23
lines changed Original file line number Diff line number Diff line change 1515
1616 strategy :
1717 matrix :
18- os : [ubuntu-latest, macos-latest, windows-latest ]
18+ os : [ubuntu-latest, macos-latest]
1919
2020 steps :
2121 - name : Checkout code
Original file line number Diff line number Diff line change 1515
1616 strategy :
1717 matrix :
18- os : [ubuntu-latest, macos-latest, windows-latest ]
18+ os : [ubuntu-latest, macos-latest]
1919
2020 steps :
2121 - name : Checkout code
Original file line number Diff line number Diff line change @@ -23,38 +23,35 @@ function getPlatformArch() {
2323 const platform = process . platform ;
2424 const arch = process . arch ;
2525
26- let platformName , archName ;
27-
2826 // Map Node.js platform to GitHub release naming
2927 switch ( platform ) {
3028 case "darwin" :
31- platformName = "darwin" ;
29+ // macOS: use format like "arm64-darwin" or "x86_64-darwin"
30+ if ( arch === "arm64" ) {
31+ return "arm64-darwin" ;
32+ } else if ( arch === "x64" ) {
33+ return "x86_64-darwin" ;
34+ }
3235 break ;
3336 case "linux" :
34- platformName = "linux" ;
35- break ;
37+ // Linux: both amd64-linux and arm64-linux are available
38+ if ( arch === "x64" ) {
39+ return "amd64-linux" ;
40+ } else if ( arch === "arm64" ) {
41+ return "arm64-linux" ;
42+ }
43+ console . error ( `✗ Unsupported Linux architecture: ${ arch } . Only x64 and ARM64 are supported.` ) ;
44+ process . exit ( 1 ) ;
3645 case "win32" :
37- platformName = "windows" ;
38- break ;
39- default :
40- console . error ( `✗ Unsupported platform: ${ platform } ` ) ;
46+ console . error ( `✗ Windows builds are not available for Barretenberg.` ) ;
4147 process . exit ( 1 ) ;
42- }
43-
44- // Map Node.js arch to GitHub release naming
45- switch ( arch ) {
46- case "arm64" :
47- archName = "arm64" ;
48- break ;
49- case "x64" :
50- archName = "x86_64" ;
51- break ;
5248 default :
53- console . error ( `✗ Unsupported architecture : ${ arch } ` ) ;
49+ console . error ( `✗ Unsupported platform : ${ platform } ` ) ;
5450 process . exit ( 1 ) ;
5551 }
5652
57- return `${ archName } -${ platformName } ` ;
53+ console . error ( `✗ Unsupported architecture: ${ arch } for platform: ${ platform } ` ) ;
54+ process . exit ( 1 ) ;
5855}
5956
6057// Download file from URL
You can’t perform that action at this time.
0 commit comments