61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux x86_64
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install build dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-build.txt
|
|
|
|
- name: Build
|
|
run: pyinstaller --clean --noconfirm psppt.spec
|
|
|
|
- name: Package tarball
|
|
run: |
|
|
cp packaging/install.sh dist/psppt/
|
|
cp packaging/psppt.desktop dist/psppt/
|
|
cp img/app-icon.png dist/psppt/
|
|
tar -czf psppt-linux-x86_64.tar.gz -C dist psppt
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: psppt-linux-x86_64
|
|
path: psppt-linux-x86_64.tar.gz
|
|
|
|
windows:
|
|
name: Windows x64 (Wine)
|
|
runs-on: windows
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install build dependencies
|
|
run: |
|
|
winpython -m pip install --upgrade pip
|
|
winpython -m pip install -r requirements-build.txt
|
|
|
|
- name: Build
|
|
run: winpython -m PyInstaller --clean --noconfirm psppt.spec
|
|
|
|
- name: Package zip
|
|
run: |
|
|
cd dist && zip -rq ../psppt-windows-x64.zip psppt
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: psppt-windows-x64
|
|
path: psppt-windows-x64.zip
|