This repository was archived by the owner on Jul 3, 2024. It is now read-only.
ci: nuitka build test #26
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: Build & Publish Binaries | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check-out repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Load cached Poetry installation | |
id: cached-poetry | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local # the path depends on the OS | |
key: poetry-0 # increment to reset cache | |
- name: Install Poetry | |
if: steps.cached-poetry.outputs.cache-hit != 'true' | |
uses: snok/install-poetry@v1 | |
- name: Load cached venv | |
id: cached-pip-wheels | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Install library | |
run: poetry install --no-interaction | |
- run: source $VENV | |
- name: Build Executable | |
uses: Nuitka/[email protected] | |
with: | |
nuitka-version: main | |
script-name: ./drumpy/cli.py | |
standalone: true | |
onefile: false | |
include-plugin-directory: .venv/lib/site-packages/pygame_gui/data/ | |
include-data-dir: ./DrumSamples=./DrumSamples | |
include-data-files: | | |
./*.task=./ | |
.venv/lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/ | |
.venv/lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/ | |
enable-console: true | |
enable-plugins: no-qt | |
company-name: Mouwrice | |
product-name: DrumPy | |
product-version: 0.1.0 | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Drumpy-${{ runner.os }} | |
path: build/cli.dist |