Skip to content

Add release build toolchain #11

Add release build toolchain

Add release build toolchain #11

Workflow file for this run

name: Build release binary
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, osx, windows-msvc]
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: stable
- build: osx
os: macos-latest
target: x86_64-apple-darwin
rust: stable
- build: windows-msvc
os: windows-latest
target: x86_64-pc-windows-msvc
rust: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Build binary
run: cargo build --release
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/release/st