Skip to content

Commit e72c471

Browse files
committed
Simplify nuitka usage
Refs: astral-sh/uv#12079
1 parent 3a748a8 commit e72c471

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -131,27 +131,12 @@ jobs:
131131
- name: Install uv
132132
run: |
133133
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt
134-
- name: Install Nuitka
135-
# XXX We cannot break the long "pip install" line below with a class "\" because it will not be able to run on
136-
# Windows' shell:
137-
# ParserError: D:\a\_temp\330d7ec7-c0bf-4856-b2d8-407b69be9ee2.ps1:4
138-
# Line |
139-
# 4 | --requirement https://raw.githubusercontent.com/kdeldycke/workflows/m …
140-
# | ~
141-
# | Missing expression after unary operator '--'.
142-
# yamllint disable rule:line-length
143-
run: |
144-
uv --no-progress venv --python 3.13
145-
uv --no-progress pip install --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt
146-
# yamllint enable
147-
- name: Nuitka + compilers versions
148-
run: |
149-
uv --no-progress run --frozen -- nuitka --version
150134
- name: Build binary
151135
run: >
152-
uv --no-progress run --frozen -- nuitka
153-
--onefile --assume-yes-for-downloads --output-filename=${{ matrix.bin_name }}
154-
${{ matrix.module_path }}
136+
uvx
137+
--with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt
138+
--
139+
nuitka --onefile --assume-yes-for-downloads --output-filename=${{ matrix.bin_name }} ${{ matrix.module_path }}
155140
- name: Upload binaries
156141
uses: actions/[email protected]
157142
with:

0 commit comments

Comments
 (0)