Skip to content

Commit

Permalink
misc(ci): Test standalone builds are working
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Jan 8, 2025
1 parent 6fb5899 commit 9d64551
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/standalone-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request: {}

jobs:

windows:
name: "Build Windows standalone version"
runs-on: windows-2022
Expand All @@ -25,11 +26,17 @@ jobs:
with:
python-version: "3.13"

- name: "Build YOGA Windows Standelone Version"
- name: "Build YOGA Windows standelone version"
run: |
winbuild\builddist.bat
- name: Archive Windows Build
- name: "Check the standalone build is working"
shell: pwsh
run: |
.\yogawin.dist\yoga.exe image test/images/image1.jpg OUT.opti.jpg
Test-Path -PathType Leaf OUT.opti.jpg
- name: "Archive Windows Build"
uses: actions/upload-artifact@v4
with:
name: yoga-vX.X.X_win_standalone_x86-64
Expand All @@ -38,6 +45,7 @@ jobs:
linux:
name: "Build Linux standalone version"
runs-on: ubuntu-24.04

steps:
- name: "Checkout the repository"
uses: actions/checkout@v4
Expand All @@ -53,10 +61,15 @@ jobs:
run: |
pip install setuptools
- name: "Build YOGA Linux Standelone Version"
- name: "Build YOGA Linux standelone version"
run: |
linux-bin/build.sh
- name: "Check the standalone build is working"
run: |
./yoga-bin.dist/yoga.bin image test/images/image1.jpg OUT.opti.jpg
test -f OUT.opti.jpg
- name: "Make the release tarball"
run: |
mv yoga-bin.dist yoga-v$(python setup.py --version)_linux_standalone_x86-64
Expand Down

0 comments on commit 9d64551

Please # to comment.