Skip to content

v0.6.0-rc.1

v0.6.0-rc.1 #7

name: Release MacOS Intel
on:
release:
types:
- created
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
name: Deploy for ${{ matrix.os }}
if: startsWith(github.ref, 'refs/tags')
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [macos-11, macos-12]
include:
- name: macos-11
os: macos-11
artifact_name: matchstick
asset_name: binary-macos-11
- name: macos-12
os: macos-12
artifact_name: matchstick
asset_name: binary-macos-12
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.68.0
- run: brew install protobuf
- name: Build
run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }}
- name: Upload binaries to release
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }}