-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (79 loc) · 2.58 KB
/
Copy pathcompile.yml
File metadata and controls
90 lines (79 loc) · 2.58 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Build Executables
on:
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install streamlit plotly matplotlib graphviz kaleido pyinstaller
# Windows
- name: Compile Windows
if: matrix.os == 'windows-latest'
run: |
pyinstaller --noconfirm --onefile \
--name DataVisualizer_Windows \
--add-data "web_app.py;." \
--add-data "data/dataset.example.csv;data" \
--hidden-import web_app \
--collect-all streamlit \
--collect-all plotly \
--copy-metadata streamlit \
web_run.py
# Linux
- name: Compile Linux
if: matrix.os == 'ubuntu-latest'
run: |
python3 -m PyInstaller --noconfirm --onefile \
--name DataVisualizer_Linux \
--add-data "web_app.py:." \
--add-data "data/dataset.example.csv:data" \
--hidden-import web_app \
--collect-all streamlit \
--collect-all plotly \
--copy-metadata streamlit \
web_run.py
# MacOS
- name: Compile macOS
if: matrix.os == 'macos-latest'
run: |
python3 -m PyInstaller --noconfirm --onefile \
--name DataVisualizer_MacOS \
--add-data "web_app.py:." \
--add-data "data/dataset.example.csv:data" \
--hidden-import web_app \
--collect-all streamlit \
--collect-all plotly \
--copy-metadata streamlit \
web_run.py
# Artifacts
- name: Upload Windows File
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: DataVisualizer_Windows
path: dist/DataVisualizer_Windows.exe
- name: Upload Linux File
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: DataVisualizer_Linux
path: dist/DataVisualizer_Linux
- name: Upload macOS File
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: DataVisualizer_MacOS
path: dist/DataVisualizer_MacOS