Test Nuitka #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# os: [macos-latest, ubuntu-20.04, windows-latest] | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
cache: 'pip' | |
cache-dependency-path: | | |
pyproject.toml | |
- name: Install | |
run: | | |
pip install .[test] | |
- name: Linter | |
run: | | |
make lint | |
# `import pyglet` crashes on ubuntu-latest due to missing X window system | |
if: matrix.os == 'macos-latest' | |
- name: Build Executable | |
uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: imshow | |
standalone: true | |
onefile: false | |
- name: Test Executable | |
run: | | |
ls -R | |
./build/imshow.bin --version | |
# `import pyglet` crashes on ubuntu-latest due to missing X window system | |
if: matrix.os == 'macos-latest' | |
# - name: Rename Executable | |
# run: | | |
# mv build/imshow.bin build/imshow-${{ runner.os }}.bin | |
# if: matrix.os != 'windows-latest' | |
# | |
# - name: Upload Artifacts | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: build-${{ runner.os }} | |
# path: | | |
# build/*.exe | |
# build/*.bin |