Files
SDL3CPlusPlus/.github/workflows/package-release.yml
Richard Ward fdf030b26d tidy workflow
2025-12-18 23:45:54 +00:00

56 lines
1.4 KiB
YAML

name: Package Release
on:
workflow_call:
permissions:
contents: read
packages: write
releases: write
jobs:
package-release:
strategy:
fail-fast: false
matrix:
include:
- name: linux-amd64
runner: ubuntu-24.04
platform: linux
arch: amd64
- name: linux-arm64
runner: ubuntu-24.04-arm64
platform: linux
arch: arm64
runs-on: ${{ matrix.runner }}
env:
BUILD_DIR: build/${{ matrix.platform }}-${{ matrix.arch }}
ZIP_NAME: sdl3_app-${{ matrix.platform }}-${{ matrix.arch }}.zip
PLATFORM_NAME: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: build-${{ matrix.platform }}-${{ matrix.arch }}
path: .
run-id: ${{ github.run_id }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Package release ZIP
run: python scripts/package_release.py
- name: Publish GitHub release asset
if: github.ref != 'refs/tags/local'
uses: softprops/action-gh-release@v1
with:
files: release/${{ env.ZIP_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}