-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (50 loc) · 2.04 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy and release
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_app_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_app_linux.bin
elif [ "$RUNNER_OS" == "macOS" ]; then
mv zxlive/deployment/__main__.app/Contents/MacOS/__main__ ./zxlive_app_macos.bin
fi
- name: Release
uses: softprops/action-gh-release@v1
with:
files: zxlive_app_*