Build nuitka distribution #39
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 nuitka distribution | |
on: | |
push: | |
tags: | |
- 'v*' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
strategy: | |
matrix: | |
architecture: ['x86', 'x64'] | |
env: | |
NUITKA_ASSUME_YES: 1 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
architecture: ${{ matrix.architecture }} | |
- name: Generate variables | |
id: vars | |
working-directory: .github/workflows/ | |
run: python gen_build_vars.py ${{ matrix.architecture }} | |
- name: Install wheel, nuitka and dependencies | |
run: | | |
pip install wheel | |
pip install nuitka | |
pip install -r requirements.txt | |
- name: Build | |
run: python setup_nuitka.py | |
- name: Create and upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ steps.vars.outputs.BUILD_NAME }} | |
path: ${{ steps.vars.outputs.DEMOMGR_DIST_GLOB }} |