granc/.github/workflows/release-binaries.yml
2026-02-11 12:21:05 +01:00

39 lines
962 B
YAML

name: Release Binaries
permissions:
contents: write
on:
release:
types: [created]
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 }}