Skip to content

Commit 2f0b779

Browse files
committed
Fix CI artifact names
1 parent 51d0ee1 commit 2f0b779

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
os.makedirs('dist', exist_ok=True)
55

66
os_name_map = {
7-
"Darwin": "macos",
8-
"Linux": "linux",
9-
"Windows": "windows"
7+
"darwin": "macos",
8+
"linux": "linux",
9+
"ubuntu": "linux",
10+
"windows": "windows"
1011
}
1112
arch_map = {
1213
"x86_64": "amd64",
1314
"arm64": "arm64",
1415
"aarch64": "arm64",
1516
"amd64": "amd64"
1617
}
17-
os_name = os_name_map[platform.system()]
18+
os_name = os_name_map[platform.system().lower()]
1819
arch = arch_map[platform.machine().lower()]
1920
print(f"Building for {os_name} {arch}")
2021

0 commit comments

Comments
 (0)