mirror of
https://codeberg.org/JasterV/granc.git
synced 2026-04-26 18:40:05 +00:00
add workflow to publish binaries
This commit is contained in:
parent
4494cc7596
commit
322ba2a355
1 changed files with 39 additions and 0 deletions
39
.github/workflows/release-binaries.yml
vendored
Normal file
39
.github/workflows/release-binaries.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Release Binaries
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published, 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 }}
|
||||
Loading…
Reference in a new issue