Skip to content

Commit 9be5d31

Browse files
committed
[feat] add ci
1 parent 5b27226 commit 9be5d31

File tree

4 files changed

+84
-5
lines changed

4 files changed

+84
-5
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: bgallois

.github/workflows/build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: pyinstaller
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
9+
build_linux:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.9'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install pyinstaller
21+
python -m pip install -r requirements.txt
22+
- name: Build package
23+
run: |
24+
./build.sh
25+
python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" #--icon=assets/images/icon.ico
26+
- name: Linux artefact
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: FastAnalyzer_linux
30+
path: ./dist/FastAnalyzer
31+
32+
build_macos:
33+
runs-on: macos-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Set up Python
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: '3.9'
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
python -m pip install pyinstaller
44+
python -m pip install -r requirements.txt
45+
- name: Build package
46+
run: |
47+
./build.sh
48+
python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" --noconsole #--icon=assets/images/icon.ico
49+
- name: Mac artefact
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: FastAnalyzer_macos
53+
path: ./dist/FastAnalyzer.app
54+
55+
build_windows:
56+
runs-on: windows-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- name: Set up Python
60+
uses: actions/setup-python@v2
61+
with:
62+
python-version: '3.9'
63+
- name: Install dependencies
64+
run: |
65+
python -m pip install --upgrade pip
66+
python -m pip install pyinstaller
67+
python -m pip install -r requirements.txt
68+
- name: Build package
69+
shell: bash
70+
run: |
71+
./build.sh
72+
python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" --noconsole #--icon=assets/images/icon.ico
73+
- name: Windows artefact
74+
uses: actions/upload-artifact@v3
75+
with:
76+
name: FastAnalyzer_windows
77+
path: ./dist/FastAnalyzer.exe

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pyside2-rcc src/resources.qrc -o src/rc_ressources.py
2+
pyside2-uic src/fastanalyzer.ui -o src/ui_fastanalyzer.py
3+
pyside2-uic src/plot.ui -o src/ui_plot.py
4+
pyside2-uic src/plot_settings.ui -o src/ui_plot_settings.py
5+
pyside2-uic src/data_calc.ui -o src/ui_data_calc.py

run.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
pyside2-rcc src/resources.qrc -o src/rc_ressources.py
2-
pyside2-uic src/fastanalyzer.ui > src/ui_fastanalyzer.py
3-
pyside2-uic src/plot.ui > src/ui_plot.py
4-
pyside2-uic src/plot_settings.ui > src/ui_plot_settings.py
5-
pyside2-uic src/data_calc.ui > src/ui_data_calc.py
1+
./build.sh
62
python src/fastanalyzer.py

0 commit comments

Comments
 (0)