Skip to content

Commit 8cd224b

Browse files
authored
Added executable build
1 parent f02d662 commit 8cd224b

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/main.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
name: Executable Build
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the "main" branch
7+
push:
8+
branches: [ "main", "master" ]
9+
pull_request:
10+
branches: [ "main", "master" ]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
jobs:
16+
17+
build:
18+
19+
strategy:
20+
matrix:
21+
os: [macos-latest, ubuntu-latest, windows-latest]
22+
23+
runs-on: ${{ matrix.os }}
24+
25+
steps:
26+
27+
# Check-out repository
28+
- uses: actions/checkout@v3
29+
with:
30+
repository: bhowiebkr/logic-node-editor
31+
32+
# Setup Python
33+
- uses: actions/setup-python@v4
34+
with:
35+
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
36+
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
37+
cache: 'pip'
38+
- run: |
39+
python -m pip install --upgrade pip
40+
pip install -r requirements.txt
41+
42+
# Build python script into a stand-alone exe
43+
- uses: Nuitka/Nuitka-Action@v0.3.2
44+
with:
45+
script-name: main.py
46+
access-token: ${{ secrets.NUITKA_COMMERCIAL_ACCESS_TOKEN }}
47+
onefile: true
48+
enable-plugins: pyside2
49+
disable-console: true
50+
51+
# Uploads artifact
52+
- name: Upload Artifacts
53+
uses: actions/upload-artifact@v3
54+
with:
55+
name: ${{ runner.os }} Build
56+
path: |
57+
build/*.exe
58+
build/*.bin
59+
build/*.app/**/*
60+

0 commit comments

Comments
 (0)