Removed some properties from Nuitka workflow. #5
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 Windows Executables with Nuitka | |
permissions: write-all | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-windows: | |
name: Build for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
pip install imageio | |
- name: Run Nuitka for Deserializer | |
uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: flatc_deserializer.py | |
onefile: true | |
enable-plugins: tk-inter | |
include-data-dir: | | |
.\localization=localization | |
.\images=images | |
windows-icon-from-ico: "images/flatbuffers-logo-clean.png" | |
- name: Run Nuitka for Downloader | |
uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: flatc_downloader.py | |
onefile: true | |
enable-plugins: tk-inter | |
include-data-dir: | | |
.\localization=localization | |
.\images=images | |
windows-icon-from-ico: "images/flatbuffers-downloader-logo-clean.png" | |
- name: Run Nuitka for Batch Deserializer | |
uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: flatc_deserializer_batch.py | |
onefile: true | |
enable-plugins: tk-inter | |
include-data-dir: | | |
.\localization=localization | |
.\images=images | |
windows-icon-from-ico: "images/flatbuffers-batch-logo-clean.png" | |
- name: Move Executables from build to root directory | |
run: | | |
move build\flatc_deserializer.exe . | |
move build\flatc_deserializer_batch.exe . | |
move build\flatc_downloader.exe . | |
rd /s /q build | |
shell: cmd | |
- name: Create Automatic Windows Release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest-nuitka | |
prerelease: false | |
title: Latest Nuitka Build | |
files: | | |
flatc_deserializer.exe | |
flatc_deserializer_batch.exe | |
flatc_downloader.exe |