We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51d0ee1 commit 2f0b779Copy full SHA for 2f0b779
1 file changed
.github/workflows/build.py
@@ -4,17 +4,18 @@
4
os.makedirs('dist', exist_ok=True)
5
6
os_name_map = {
7
- "Darwin": "macos",
8
- "Linux": "linux",
9
- "Windows": "windows"
+ "darwin": "macos",
+ "linux": "linux",
+ "ubuntu": "linux",
10
+ "windows": "windows"
11
}
12
arch_map = {
13
"x86_64": "amd64",
14
"arm64": "arm64",
15
"aarch64": "arm64",
16
"amd64": "amd64"
17
-os_name = os_name_map[platform.system()]
18
+os_name = os_name_map[platform.system().lower()]
19
arch = arch_map[platform.machine().lower()]
20
print(f"Building for {os_name} {arch}")
21
0 commit comments