Skip to content

Commit 56ddd3d

Browse files
committed
Test Nuitka
1 parent 768ef7a commit 56ddd3d

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/ci.yml

+31-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
os: [macos-latest, ubuntu-20.04, windows-latest]
17+
# os: [macos-latest, ubuntu-20.04, windows-latest]
18+
os: [macos-latest]
1819

1920
steps:
2021
- uses: actions/checkout@v4
2122
with:
2223
fetch-depth: 0
2324

2425
- name: Setup Python
25-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2627
with:
2728
python-version: '3.10'
28-
architecture: 'x64'
2929
cache: 'pip'
3030
cache-dependency-path: |
3131
pyproject.toml
@@ -39,3 +39,31 @@ jobs:
3939
make lint
4040
# `import pyglet` crashes on ubuntu-latest due to missing X window system
4141
if: matrix.os == 'macos-latest'
42+
43+
- name: Build Executable
44+
uses: Nuitka/Nuitka-Action@main
45+
with:
46+
nuitka-version: main
47+
script-name: imshow
48+
standalone: true
49+
onefile: false
50+
51+
- name: Test Executable
52+
run: |
53+
./build/imshow.dist/imshow.bin --version
54+
ls ./build/imshow.dist
55+
# `import pyglet` crashes on ubuntu-latest due to missing X window system
56+
if: matrix.os == 'macos-latest'
57+
58+
# - name: Rename Executable
59+
# run: |
60+
# mv build/imshow.bin build/imshow-${{ runner.os }}.bin
61+
# if: matrix.os != 'windows-latest'
62+
#
63+
# - name: Upload Artifacts
64+
# uses: actions/upload-artifact@v4
65+
# with:
66+
# name: build-${{ runner.os }}
67+
# path: |
68+
# build/*.exe
69+
# build/*.bin

0 commit comments

Comments
 (0)