1212 PYTHON_DIST_RELEASE : 20260203
1313
1414jobs :
15- # build-darwin:
16- # name: Build Python for iOS and macOS
17- # runs-on: macos-15
18- # permissions:
19- # contents: write
15+ build-darwin :
16+ name : Build Python for iOS and macOS
17+ runs-on : macos-15
18+ permissions :
19+ contents : write
2020
21- # steps:
22- # - name: Checkout
23- # uses: actions/checkout@v4
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
2424
25- # - name: Setup Python
26- # uses: actions/setup-python@v6
27- # with:
28- # python-version: ${{ env.PYTHON_VERSION_SHORT }}
25+ - name : Setup Python
26+ uses : actions/setup-python@v6
27+ with :
28+ python-version : ${{ env.PYTHON_VERSION_SHORT }}
2929
30- # - name: Show Python version
31- # run: python --version
30+ - name : Show Python version
31+ run : python --version
3232
33- # - name: Build Python for iOS and macOS
34- # working-directory: darwin
35- # shell: bash
36- # run: |
37- # git clone --branch="$PYTHON_VERSION_SHORT" https://github.com/beeware/Python-Apple-support.git
38- # mkdir -p dist
33+ - name : Build Python for iOS and macOS
34+ working-directory : darwin
35+ shell : bash
36+ run : |
37+ git clone --branch="$PYTHON_VERSION_SHORT" https://github.com/beeware/Python-Apple-support.git
38+ mkdir -p dist
3939
40- # pushd Python-Apple-support
41- # make iOS
42- # tar -czf ../dist/python-ios-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support -C .
43- # make macOS
44- # popd
40+ pushd Python-Apple-support
41+ make iOS
42+ tar -czf ../dist/python-ios-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support -C .
43+ make macOS
44+ popd
4545
46- # bash ./package-ios-for-dart.sh Python-Apple-support "$PYTHON_VERSION_SHORT"
47- # bash ./package-macos-for-dart.sh Python-Apple-support "$PYTHON_VERSION_SHORT"
46+ bash ./package-ios-for-dart.sh Python-Apple-support "$PYTHON_VERSION_SHORT"
47+ bash ./package-macos-for-dart.sh Python-Apple-support "$PYTHON_VERSION_SHORT"
4848
49- # - name: Upload Darwin build artifacts
50- # uses: actions/upload-artifact@v4
51- # with:
52- # name: python-darwin
53- # path: darwin/dist/python-*.tar.gz
54- # if-no-files-found: error
49+ - name : Upload Darwin build artifacts
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : python-darwin
53+ path : darwin/dist/python-*.tar.gz
54+ if-no-files-found : error
5555
56- # build-android:
57- # name: Build Python for Android
58- # runs-on: ubuntu-latest
59- # permissions:
60- # contents: write
61- # steps:
62- # - uses: actions/checkout@v4
63- # - uses: actions/setup-python@v5
64- # with:
65- # python-version: ${{ env.PYTHON_VERSION }}
66- # - run: python --version
67- # - working-directory: android
68- # shell: bash
69- # run: |
70- # bash ./build-all.sh "$PYTHON_VERSION"
71- # mkdir -p dist
72- # tar -czf dist/python-android-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support
73- # bash ./package-for-dart.sh install "$PYTHON_VERSION" arm64-v8a
74- # bash ./package-for-dart.sh install "$PYTHON_VERSION" armeabi-v7a
75- # bash ./package-for-dart.sh install "$PYTHON_VERSION" x86_64
76- # - uses: actions/upload-artifact@v4
77- # with:
78- # name: python-android
79- # path: android/dist/python-android-*.tar.gz
80- # if-no-files-found: error
56+ build-android :
57+ name : Build Python for Android
58+ runs-on : ubuntu-latest
59+ permissions :
60+ contents : write
61+ steps :
62+ - uses : actions/checkout@v4
63+ - uses : actions/setup-python@v5
64+ with :
65+ python-version : ${{ env.PYTHON_VERSION }}
66+ - run : python --version
67+ - working-directory : android
68+ shell : bash
69+ run : |
70+ bash ./build-all.sh "$PYTHON_VERSION"
71+ mkdir -p dist
72+ tar -czf dist/python-android-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support
73+ bash ./package-for-dart.sh install "$PYTHON_VERSION" arm64-v8a
74+ bash ./package-for-dart.sh install "$PYTHON_VERSION" armeabi-v7a
75+ bash ./package-for-dart.sh install "$PYTHON_VERSION" x86_64
76+ - uses : actions/upload-artifact@v4
77+ with :
78+ name : python-android
79+ path : android/dist/python-android-*.tar.gz
80+ if-no-files-found : error
8181
82- # build-linux:
83- # name: Build Python for Linux
84- # runs-on: ubuntu-latest
85- # permissions:
86- # contents: write
87- # steps:
88- # - uses: actions/checkout@v4
89- # - working-directory: linux
90- # shell: bash
91- # run: |
92- # bash ./package-for-linux.sh x86_64 "_v2"
93- # bash ./package-for-linux.sh aarch64 ""
94- # - uses: actions/upload-artifact@v4
95- # with:
96- # name: python-linux
97- # path: linux/python-linux-dart-*.tar.gz
98- # if-no-files-found: error
82+ build-linux :
83+ name : Build Python for Linux
84+ runs-on : ubuntu-latest
85+ permissions :
86+ contents : write
87+ steps :
88+ - uses : actions/checkout@v4
89+ - working-directory : linux
90+ shell : bash
91+ run : |
92+ bash ./package-for-linux.sh x86_64 "_v2"
93+ bash ./package-for-linux.sh aarch64 ""
94+ - uses : actions/upload-artifact@v4
95+ with :
96+ name : python-linux
97+ path : linux/python-linux-dart-*.tar.gz
98+ if-no-files-found : error
9999
100100 build-windows :
101101 name : Build Python for Windows
@@ -114,30 +114,30 @@ jobs:
114114 path : windows/python-windows-for-dart-*.zip
115115 if-no-files-found : error
116116
117- # publish-release:
118- # name: Publish Release Assets
119- # runs-on: ubuntu-latest
120- # needs:
121- # - build-darwin
122- # - build-android
123- # - build-linux
124- # - build-windows
125- # permissions:
126- # contents: write
127- # steps:
128- # - name: Download all build artifacts
129- # uses: actions/download-artifact@v4
130- # with:
131- # pattern: python-*
132- # path: release-artifacts
133- # merge-multiple: true
117+ publish-release :
118+ name : Publish Release Assets
119+ runs-on : ubuntu-latest
120+ needs :
121+ - build-darwin
122+ - build-android
123+ - build-linux
124+ - build-windows
125+ permissions :
126+ contents : write
127+ steps :
128+ - name : Download all build artifacts
129+ uses : actions/download-artifact@v4
130+ with :
131+ pattern : python-*
132+ path : release-artifacts
133+ merge-multiple : true
134134
135- # - name: Publish all artifacts to release
136- # uses: softprops/action-gh-release@v2
137- # with:
138- # tag_name: v${{ env.PYTHON_VERSION_SHORT }}
139- # files: release-artifacts/*
140- # fail_on_unmatched_files: true
141- # generate_release_notes: false
142- # draft: false
143- # prerelease: false
135+ - name : Publish all artifacts to release
136+ uses : softprops/action-gh-release@v2
137+ with :
138+ tag_name : v${{ env.PYTHON_VERSION }}
139+ files : release-artifacts/*
140+ fail_on_unmatched_files : true
141+ generate_release_notes : false
142+ draft : false
143+ prerelease : false
0 commit comments