Skip to content

Commit 1a865b1

Browse files
authored
Update osx.yml
1 parent 0569d74 commit 1a865b1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/osx.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build ARM64 Python on macOS
22

3-
on:
4-
workflow_dispatch
3+
on:
4+
workflow_dispatch:
55

66
jobs:
77
build:
@@ -20,12 +20,18 @@ jobs:
2020
- name: Build Python 3.11.8 for ARM64
2121
run: |
2222
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
2424
arch -arm64 make -j$(sysctl -n hw.ncpu)
2525
arch -arm64 make install
2626
2727
- name: Verify Build
2828
run: |
2929
$HOME/python-arm64/bin/python3 --version
3030
$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

0 commit comments

Comments
 (0)