-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (62 loc) · 1.95 KB
/
ci.yml
File metadata and controls
67 lines (62 loc) · 1.95 KB
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
name: Build Standalone GUI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install pyinstaller pyqt6 opencv-python huggingface_hub[cli]==0.25.2
- name: Build exe
run: pyinstaller --onefile --windowed osl_visualizer/main.py --add-data "osl_visualizer/ui;ui"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: OSL-GUI-Windows
path: dist/main.exe
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install pyinstaller pyqt6 opencv-python huggingface_hub[cli]==0.25.2
- name: Build app
run: pyinstaller --onefile --windowed osl_visualizer/main.py --add-data "osl_visualizer/ui:ui"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: OSL-GUI-macOS
path: dist/main
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y libgl1 libglib2.0-0
pip install pyinstaller pyqt6 opencv-python huggingface_hub[cli]==0.25.2
- name: Build binary
run: pyinstaller --onefile --windowed osl_visualizer/main.py --add-data "osl_visualizer/ui:ui"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: OSL-GUI-Linux
path: dist/main