mirror of
https://codeberg.org/JasterV/granc.git
synced 2026-04-26 18:40:05 +00:00
39 lines
964 B
YAML
39 lines
964 B
YAML
name: Release Binaries
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
upload-assets:
|
|
name: Upload assets for ${{ matrix.target }}
|
|
if: startsWith(github.event.release.tag_name, 'granc-v')
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# Linux x86_64
|
|
- target: x86_64-unknown-linux-gnu
|
|
os: ubuntu-latest
|
|
# macOS x86_64 (Intel)
|
|
- target: x86_64-apple-darwin
|
|
os: macos-latest
|
|
# macOS ARM64 (Apple Silicon)
|
|
- target: aarch64-apple-darwin
|
|
os: macos-latest
|
|
# Windows x86_64
|
|
- target: x86_64-pc-windows-msvc
|
|
os: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build and Upload
|
|
uses: taiki-e/upload-rust-binary-action@v1
|
|
with:
|
|
bin: granc
|
|
target: ${{ matrix.target }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|