Skip to content

Commit 70538d9

Browse files
Use Nuitka actions instead bash script in windows build step.
1 parent 0db2a7e commit 70538d9

File tree

1 file changed

+15
-36
lines changed

1 file changed

+15
-36
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,15 @@ jobs:
7575
7676
fi
7777
78-
7978
- name: Build CLI for Windows
80-
shell: cmd
81-
82-
run: |
83-
if [[ "${{ runner.os }}" == "Windows" ]]; then
84-
set NUITKA_DEPENDS_DOWNLOAD_ALLOWED=1
85-
set NUITKA_DEPENDS_DOWNLOAD_MODE=cached
86-
set THREADS=%NUMBER_OF_PROCESSORS%
79+
if: runner.os == 'Windows'
8780

88-
python -m nuitka main.py ^
89-
--onefile ^
90-
--lto=yes ^
91-
--jobs=%THREADS% ^
92-
--output-dir=build/cli ^
93-
--output-filename=sephera-cli.exe
94-
95-
fi
81+
uses: Nuitka/Nuitka-Action@main
82+
with:
83+
nuitka-version: main
84+
script-name: main.py
85+
mode: onefile
86+
output-dir: build/cli
9687

9788
- name: Build GUI App for Linux
9889
shell: bash
@@ -127,26 +118,14 @@ jobs:
127118
fi
128119
129120
- name: Build GUI App for Windows
130-
shell: cmd
131-
132-
run: |
133-
set NUITKA_DEPENDS_DOWNLOAD_ALLOWED=1
134-
set NUITKA_DEPENDS_DOWNLOAD_MODE=cached
135-
set THREADS=%NUMBER_OF_PROCESSORS%
136-
137-
if [[ "${{ runner.os }}" == "Windows" ]]; then
138-
THREADS=$(nproc)
139-
echo "NUITKA_DEPENDS_DOWNLOAD_ALLOWED=$NUITKA_DEPENDS_DOWNLOAD_ALLOWED"
140-
141-
python -m nuitka gui/main.py ^
142-
--onefile ^
143-
--enable-plugins=pyqt5 ^
144-
--lto=yes ^
145-
--assume-yes-for-downloads ^
146-
--jobs=%THREADS% ^
147-
--output-dir=build/gui ^
148-
--output-filename=sephera-gui.exe
149-
fi
121+
if: runner.os == 'Windows'
122+
123+
uses: Nuitka/Nuitka-Action@main
124+
with:
125+
nuitka-version: main
126+
script-name: main.py
127+
mode: onefile
128+
output-dir: build/gui
150129

151130
- name: Upload Artifacts
152131
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)