Skip to content

Finalizing deployment #34

Finalizing deployment

Finalizing deployment #34

Workflow file for this run

name: Deploy and relase
on:
push:
# tags:
# - "v*.*.*"
env:
SRC_DIR: zxlive
jobs:
build_and_deploy:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ 3.11 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Download Dependency Walker - Specific to Windows
# If this is not done, Nuitka crashes weirdly.
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri 'https://dependencywalker.com/depends22_x86.zip' -OutFile 'depends22_x86.zip'
Add-Type -AssemblyName System.IO.Compression.FileSystem ;
[System.IO.Compression.ZipFile]::ExtractToDirectory("depends22_x86.zip", "depends22_x86")
New-Item -ItemType Directory -Path C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64\ -Force
Move-Item -Path depends22_x86\depends.exe -Destination C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64\depends.exe
- name: Install dependencies
run:
pip install .
- name: Build ZXLive
run: pyside6-deploy -v -f -c pysidedeploy.spec --keep-deployment-files
- name: Rename files, fix deployment file location - Windows
if: matrix.os == 'windows-latest'
run: mv build/__main__.exe ./zxlive_windows.exe
- name: Rename files, fix deployment file location - Linux, MacOS
if: matrix.os != 'windows-latest'
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
mv build/__main__.bin ./zxlive_linux.bin
elif [ "$RUNNER_OS" == "macOS" ]; then
mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ ./zxlive_macos.command
fi
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: zxlive_*
- name: Upload build
uses: actions/upload-artifact@v3
with:
path: zxlive_*