Skip to content

Commit 0db2a7e

Browse files
Try to fix CI/CD in Windows.
1 parent b0e40ea commit 0db2a7e

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,20 @@ jobs:
7777
7878
7979
- name: Build CLI for Windows
80-
shell: bash
80+
shell: cmd
81+
8182
run: |
8283
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%
8387
84-
THREADS=$(nproc)
85-
export NUITKA_DEPENDS_DOWNLOAD_ALLOWED=1
86-
export NUITKA_DEPENDS_DOWNLOAD_MODE=cached
87-
ext=".exe"
88-
89-
python -m nuitka main.py \
90-
--onefile \
91-
--lto=yes \
92-
--jobs="$THREADS" \
93-
--output-dir=build/cli \
94-
--output-filename=sephera-cli${ext}
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
9594
9695
fi
9796
@@ -128,25 +127,25 @@ jobs:
128127
fi
129128
130129
- name: Build GUI App for Windows
131-
shell: bash
132-
env:
133-
NUITKA_DEPENDS_DOWNLOAD_ALLOWED: "1"
134-
NUITKA_DEPENDS_DOWNLOAD_MODE: "cached"
130+
shell: cmd
135131

136132
run: |
133+
set NUITKA_DEPENDS_DOWNLOAD_ALLOWED=1
134+
set NUITKA_DEPENDS_DOWNLOAD_MODE=cached
135+
set THREADS=%NUMBER_OF_PROCESSORS%
136+
137137
if [[ "${{ runner.os }}" == "Windows" ]]; then
138138
THREADS=$(nproc)
139139
echo "NUITKA_DEPENDS_DOWNLOAD_ALLOWED=$NUITKA_DEPENDS_DOWNLOAD_ALLOWED"
140-
ext=".exe"
141140
142-
python3 -m nuitka gui/main.py \
143-
--onefile \
144-
--enable-plugins=pyqt5 \
145-
--lto=yes \
146-
--assume-yes-for-downloads \
147-
--output-dir=build/gui \
148-
--jobs="$THREADS" \
149-
--output-filename=sephera-gui${ext}
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
150149
fi
151150
152151
- name: Upload Artifacts

0 commit comments

Comments
 (0)