Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
push:
tags:
- "**"
workflow_dispatch:
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-x86_64
runs-on: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- os-name: Linux-aarch64
runs-on: ubuntu-22.04
target: aarch64-unknown-linux-musl
- os-name: Linux-aarch64
runs-on: ubuntu-22.04
target: aarch64-unknown-linux-gnu
- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin
- os-name: aarch64-apple-darwin
runs-on: macOS-latest
target: aarch64-apple-darwin
toolchain:
- stable
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args:
"--release"
strip: true
- name: Publish
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: zenith
target: ${{ matrix.platform.target }}