File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Build ARM64 Python on macOS
2
2
3
- on :
4
- workflow_dispatch
3
+ on :
4
+ workflow_dispatch :
5
5
6
6
jobs :
7
7
build :
@@ -20,12 +20,18 @@ jobs:
20
20
- name : Build Python 3.11.8 for ARM64
21
21
run : |
22
22
cd Python-3.11.8
23
- arch -arm64 ./configure --prefix=$HOME/python-arm64 --enable-optimizations
23
+ arch -arm64 ./configure --prefix=$HOME/python-arm64 --enable-optimizations --host=arm64-apple-darwin
24
24
arch -arm64 make -j$(sysctl -n hw.ncpu)
25
25
arch -arm64 make install
26
26
27
27
- name : Verify Build
28
28
run : |
29
29
$HOME/python-arm64/bin/python3 --version
30
30
$HOME/python-arm64/bin/python3 -c "import platform; print(platform.machine())"
31
- $HOME/python-arm64/bin/python3 -c "import platform; print(platform.architecture())"
31
+ file $HOME/python-arm64/bin/python3
32
+
33
+ - name : Upload Python Artifact
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : python-arm64-macos
37
+ path : $HOME/python-arm64
You can’t perform that action at this time.
0 commit comments