Skip to content

Commit ebbc562

Browse files
committed
another ci attempt
1 parent afde28f commit ebbc562

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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

app/scripts/copyBB.js

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)