my cock is very small
All checks were successful
Build MuCaPy Executable / build-and-package (push) Successful in 1m39s
All checks were successful
Build MuCaPy Executable / build-and-package (push) Successful in 1m39s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Run MuCaPy
|
name: Build MuCaPy Executable
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-run:
|
build-and-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -23,11 +23,14 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Install Xvfb and libgl (for PyQt5 and OpenCV GUI)
|
- name: Install PyInstaller
|
||||||
run: |
|
run: pip install pyinstaller
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y xvfb libgl1-mesa-glx
|
|
||||||
|
|
||||||
- name: Run MuCaPy main.py with Xvfb
|
- name: Build executable with PyInstaller
|
||||||
run: |
|
run: pyinstaller --onefile --windowed mucapy/main.py
|
||||||
xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' python mucapy/main.py
|
|
||||||
|
- name: Upload executable artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: mucapy-executable
|
||||||
|
path: dist/
|
||||||
Reference in New Issue
Block a user