Configure Gitea Workflows and Add Build Scripts
- Update build-linux.yaml to use standard Ubuntu runner. - Update build-windows.yaml to use tobix/pywine container for cross-compilation on Linux. - Add build_app.py and check_ttx6.py helper scripts.
This commit is contained in:
@@ -4,29 +4,24 @@ on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
name: Build Windows
|
||||
runs-on: windows-latest
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: tobix/pywine:3.10
|
||||
steps:
|
||||
- name: Configure Git Redirect
|
||||
run: git config --global url."http://192.168.50.24:3000/".insteadOf "http://server:3000/"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
wine python -m pip install --upgrade pip
|
||||
wine pip install -r requirements.txt
|
||||
|
||||
- name: Build Executable
|
||||
run: |
|
||||
pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src src/main.py
|
||||
wine pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src src/main.py
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: TeletextEditor-Windows
|
||||
path: dist/TeletextEditor_Windows.exe
|
||||
path: dist/TeletextEditor_Windows.exe
|
||||
Reference in New Issue
Block a user