Skip to content

Commit

Permalink
Add github workflow for releases
Browse files Browse the repository at this point in the history
Created a github workflow for release
  • Loading branch information
bvaisvil authored Dec 31, 2024
1 parent f4ffbf1 commit a47332a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- "**"
jobs:
release:
name: Release - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-22.04
target: x86_64-unknown-linux-musl

- os-name: Linux-aarch64
runs-on: ubuntu-22.04
target: aarch64-unknown-linux-musl

toolchain:
- stable
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args:
"--release"
strip: true
- name: Publish
uses: houseabsolute/actions-rust-release@v1
with:
executable-name: zenith
taerget: ${{ matrix.platform.target }}

0 comments on commit a47332a

Please sign in to comment.