|
9 | 9 | branches: [ master ] |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - lua-windows-builds: |
13 | | - name: Build lua for windows |
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: lua-windows |
33 | | - path: lua/lua-windows-*.exe |
34 | | - |
35 | | - lua-linux-builds: |
36 | | - name: Build lua for linux |
| 12 | + package-build: |
| 13 | + name: Build python distribution |
37 | 14 | strategy: |
38 | 15 | matrix: |
39 | 16 | arch: [x86_64, x86, aarch64, armv7] |
40 | 17 | runs-on: ubuntu-latest |
41 | | - steps: |
42 | | - - uses: jirutka/setup-alpine@v1 |
43 | | - with: |
44 | | - branch: edge |
45 | | - arch: ${{ matrix.arch }} |
46 | | - packages: > |
47 | | - build-base |
48 | | - curl |
49 | | - bash |
50 | | -
|
51 | | - - name: Check out repository code |
52 | | - uses: actions/checkout@v4 |
53 | | - |
54 | | - - name: Build LUA for linux |
55 | | - run: cd lua && ./download-lua.sh && ./build-linux.sh ${{ matrix.arch }} |
56 | | - shell: alpine.sh {0} |
57 | | - |
58 | | - - name: Store the distribution packages |
59 | | - uses: actions/upload-artifact@v4 |
60 | | - with: |
61 | | - name: lua-linux-${{ matrix.arch }} |
62 | | - path: lua/lua-linux-* |
63 | | - |
64 | | - package-build: |
65 | | - needs: |
66 | | - - lua-windows-builds |
67 | | - - lua-linux-builds |
68 | | - name: Build python distribution |
69 | | - runs-on: ubuntu-latest |
70 | 18 |
|
71 | 19 | steps: |
72 | | - - uses: actions/checkout@v4 |
| 20 | + - name: Setup alpine chroot for ${{ matrix.arch }} |
| 21 | + uses: jirutka/setup-alpine@v1 |
73 | 22 | with: |
74 | | - persist-credentials: false |
75 | | - |
76 | | - - name: Set up Python |
77 | | - uses: actions/setup-python@v5 |
| 23 | + branch: edge |
| 24 | + arch: ${{ matrix.arch }} |
| 25 | + packages: > |
| 26 | + build-base |
| 27 | + curl |
| 28 | + bash |
| 29 | + python3 |
| 30 | +
|
| 31 | + - name: Check out repository code |
| 32 | + uses: actions/checkout@v4 |
78 | 33 | with: |
79 | | - python-version: "3.x" |
| 34 | + persist-credentials: false |
80 | 35 |
|
81 | 36 | - name: Install build dependencies |
82 | 37 | run: python -m pip install --upgrade pip build |
| 38 | + shell: alpine.sh {0} |
83 | 39 |
|
84 | 40 | - name: Build package |
85 | 41 | run: python -m build |
| 42 | + shell: alpine.sh {0} |
86 | 43 |
|
87 | 44 | - name: Store the distribution packages |
88 | 45 | uses: actions/upload-artifact@v4 |
89 | 46 | with: |
90 | | - name: python-package-distributions |
| 47 | + name: package-linux-${{ matrix.arch }} |
91 | 48 | path: dist/ |
92 | 49 |
|
93 | 50 | publish-to-pypi: |
|
108 | 65 | - name: Download all the dists |
109 | 66 | uses: actions/download-artifact@v4 |
110 | 67 | with: |
111 | | - name: python-package-distributions |
| 68 | + name: package-* |
112 | 69 | path: dist/ |
113 | 70 |
|
114 | 71 | - name: Publish distribution to PyPI |
|
0 commit comments