Skip to content

0.9.2

0.9.2 #10

Workflow file for this run

name: Build Executables
on:
release:
types: [published]
permissions:
contents: write
jobs:
build_linux:
name: Build (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv venv
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build package
run: |
source venv/bin/activate
pyside6-deploy -c pysidedeploy.spec
mv bin/photo-prune bin/photo-prune_linux.bin
- name: Upload executable
run:
gh release upload ${{ github.event.release.tag_name }} bin/photo-prune_linux.bin
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
build_macos:
name: Build (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv venv
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build package
run: |
source venv/bin/activate
pyside6-deploy -c pysidedeploy.spec
mv bin/photo-prune bin/photo-prune_macos.bin
- name: Upload executable
run:
gh release upload ${{ github.event.release.tag_name }} bin/photo-prune_macos.bin
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
build_windows:
name: Build (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv venv
python -m pip install --upgrade pip
pip install -r requirements.txt
Invoke-WebRequest -Uri 'https://dependencywalker.com/depends22_x64.zip' -Outfile 'depends.zip'
Expand-Archive -Path depends.zip 'C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64'
- name: Build package
run: |
venv\Scripts\Activate.ps1
pyside6-deploy -c pysidedeploy.spec
Rename-Item -Path 'bin\photo-prune.exe' -NewName 'photo-prune_windows.exe'
- name: Upload executable
run:
gh release upload ${{ github.event.release.tag_name }} bin/photo-prune_windows.exe
env:
GITHUB_TOKEN: ${{ github.TOKEN }}