|
9 | 9 | branches: [ master ] |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - prebuild-windows-binaries: |
13 | | - name: Prebuild windows binaries |
14 | | - runs-on: ubuntu-latest |
15 | | - |
16 | | - steps: |
17 | | - - name: Install packages |
18 | | - run: sudo apt-get install --no-install-recommends -y gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-x86-64-dev build-essential |
19 | | - |
20 | | - - name: Check out repository code |
21 | | - uses: actions/checkout@v4 |
22 | | - |
23 | | - - name: Build LUA for windows i686 |
24 | | - run: cd lua && ./download-lua.sh && ./build-mingw-i686.sh |
25 | | - |
26 | | - - name: Build LUA for windows x86_64 |
27 | | - run: cd lua && ./download-lua.sh && ./build-mingw-x86_64.sh |
28 | | - |
29 | | - - name: Store the distribution packages |
30 | | - uses: actions/upload-artifact@v4 |
31 | | - with: |
32 | | - name: windows-binaries |
33 | | - path: lua/lua-windows-*.exe |
34 | | - |
35 | 12 | package-build: |
36 | | - name: Build packages |
37 | | - needs: |
38 | | - - prebuild-windows-binaries |
39 | | - strategy: |
40 | | - matrix: |
41 | | - pyver: ["3.11", "3.12", "3.13", "3.14", "3.15"] |
42 | | - arch: [x86_64, x86, aarch64, armv7] |
| 13 | + name: Build package |
43 | 14 | runs-on: ubuntu-latest |
44 | 15 |
|
45 | 16 | steps: |
46 | | - - name: Setup alpine chroot for ${{ matrix.arch }} |
47 | | - uses: jirutka/setup-alpine@v1 |
48 | | - with: |
49 | | - branch: edge |
50 | | - arch: ${{ matrix.arch }} |
51 | | - packages: > |
52 | | - build-base |
53 | | - curl |
54 | | - bash |
55 | | - uv |
| 17 | + - name: Install extra packages |
| 18 | + run: sudo apt-get install --no-install-recommends -y gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-x86-64-dev build-essential |
56 | 19 |
|
57 | 20 | - name: Check out repository code |
58 | 21 | uses: actions/checkout@v4 |
59 | 22 | with: |
60 | 23 | persist-credentials: false |
61 | 24 |
|
62 | | - - name: Download windows lua binaries |
63 | | - uses: actions/download-artifact@v4 |
64 | | - with: |
65 | | - name: windows-binaries |
66 | | - path: lua/ |
| 25 | + - name: Prebuild LUA for windows i686 |
| 26 | + run: cd lua && ./download-lua.sh && ./build-mingw-i686.sh |
| 27 | + |
| 28 | + - name: Prebuild LUA for windows x86_64 |
| 29 | + run: cd lua && ./download-lua.sh && ./build-mingw-x86_64.sh |
67 | 30 |
|
68 | | - - name: Initialize python and venv |
69 | | - run: uv python install ${{ matrix.pyver }} && uv venv /tmp/build_venv --python ${{ matrix.pyver }} && uv pip install --upgrade --python /tmp/build_venv/bin/python build |
70 | | - shell: alpine.sh {0} |
| 31 | + - name: Initialize venv |
| 32 | + run: virtualenv /tmp/build_venv && /tmp/build_venv/bin/pip --require-virtualenv install --upgrade pip build |
71 | 33 |
|
72 | 34 | - name: Build package |
73 | | - run: uv run --python /tmp/build_venv/bin/python -m build |
74 | | - shell: alpine.sh {0} |
| 35 | + run: /tmp/build_venv/bin/python -m build --sdist |
75 | 36 |
|
76 | 37 | - name: Store the distribution packages |
77 | 38 | uses: actions/upload-artifact@v4 |
78 | 39 | with: |
79 | | - name: package-linux-${{ matrix.arch }} |
| 40 | + name: package |
80 | 41 | path: dist/ |
81 | 42 |
|
82 | 43 | publish-to-pypi: |
|
0 commit comments