-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (72 loc) · 2.3 KB
/
build_executable_nuitka.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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