mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
tidy workflow
This commit is contained in:
55
.github/workflows/package-release.yml
vendored
Normal file
55
.github/workflows/package-release.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user