Add build workflow and requirements
This commit is contained in:
57
.gitea/workflows/build.yaml
Normal file
57
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
name: Build Binaries
|
||||
run-name: ${{ gitea.actor }} is building binaries 🚀
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-tk
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build with PyInstaller
|
||||
run: |
|
||||
pyinstaller --onefile --windowed --name vhs-decode-gui-linux vhs_decode_gui.py
|
||||
|
||||
- name: Upload Linux Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vhs-decode-gui-linux
|
||||
path: dist/vhs-decode-gui-linux
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build with PyInstaller
|
||||
run: |
|
||||
pyinstaller --onefile --windowed --name vhs-decode-gui-windows.exe vhs_decode_gui.py
|
||||
|
||||
- name: Upload Windows Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vhs-decode-gui-windows.exe
|
||||
path: dist/vhs-decode-gui-windows.exe
|
||||
Reference in New Issue
Block a user