Skip to content

Commit 0eeb74c

Browse files
committed
.github: workflow updated, build for all currently supported python versions, use uv
1 parent c42d80c commit 0eeb74c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ jobs:
3333
path: lua/lua-windows-*.exe
3434

3535
package-build:
36-
name: Build python distribution
36+
name: Build packages
3737
needs:
3838
- prebuild-windows-binaries
3939
strategy:
4040
matrix:
41+
pyver: [3.10, 3.11, 3.12, 3.13, 3.14, 3.15]
4142
arch: [x86_64, x86, aarch64, armv7]
4243
runs-on: ubuntu-latest
4344

@@ -51,8 +52,7 @@ jobs:
5152
build-base
5253
curl
5354
bash
54-
python3
55-
py3-pip
55+
uv
5656
5757
- name: Check out repository code
5858
uses: actions/checkout@v4
@@ -65,12 +65,12 @@ jobs:
6565
name: windows-binaries
6666
path: lua/
6767

68-
- name: Create build env
69-
run: python -m venv /tmp/build_venv && . /tmp/build_venv/bin/activate && pip install --upgrade pip build
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
7070
shell: alpine.sh {0}
7171

7272
- name: Build package
73-
run: . /tmp/build_venv/bin/activate && python -m build
73+
run: uv run --python /tmp/build_venv/bin/python -m build
7474
shell: alpine.sh {0}
7575

7676
- name: Store the distribution packages

0 commit comments

Comments
 (0)