Skip to content

.github/workflows/build_binaries.yml #66

.github/workflows/build_binaries.yml

.github/workflows/build_binaries.yml #66

on:
push:
tags:
- "*.*.*"
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check-out repository
uses: actions/checkout@v5
- name: Install poetry
#run: pipx install poetry
run: |
pipx install poetry
which python
which poetry
which python
python --version
- name: Setup Python
id: setup_python
uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: 'poetry'
- run: poetry install
# - name: Install system build deps (Linux)
# if: matrix.os == 'ubuntu-latest'
# run: |
# sudo apt-get update
# sudo apt-get install -y python3-dev patchelf gcc
- name: show py
run: |
which python
which poetry
echo $PATH
python --version
- name: Build (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
./scripts/build-windows.ps1
- name: Build (Linux)
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
bash ./scripts/build-linux.sh
- name: Build (macOS)
if: matrix.os == 'macos-latest'
shell: bash
run: |
bash ./scripts/build-macos.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }} Build
path: |
build/DerpiWallpaper.exe
build/DerpiWallpaper.bin
build/DerpiWallpaper
include-hidden-files: true
permissions:
contents: write