-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 845 Bytes
/
exe.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
name: Build and Deploy exe
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements-windows.txt
pip install pyinstaller
pip install nuitka
- name: Build executable with PyInstaller
run: |
pyinstaller --windowed --name Spatial spatial.py
- name: Build executable with Nuitka
run: |
echo Yes | nuitka --enable-plugin=pyqt6 --standalone --windows-console-mode=disable --output-dir=dist/nuitka Spatial.py
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Spatial
path: |
dist/*
dist/nuitka/*