Skip to content

Commit 8519997

Browse files
committed
.github: workflow updated, remove most of the steps, build only sdist package for publishing
1 parent 226283d commit 8519997

1 file changed

Lines changed: 12 additions & 51 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -9,74 +9,35 @@ on:
99
branches: [ master ]
1010

1111
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-
3512
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
4314
runs-on: ubuntu-latest
4415

4516
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
5619

5720
- name: Check out repository code
5821
uses: actions/checkout@v4
5922
with:
6023
persist-credentials: false
6124

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
6730

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
7133

7234
- 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
7536

7637
- name: Store the distribution packages
7738
uses: actions/upload-artifact@v4
7839
with:
79-
name: package-linux-${{ matrix.arch }}
40+
name: package
8041
path: dist/
8142

8243
publish-to-pypi:

0 commit comments

Comments
 (0)