Skip to content

release 1.1.3

release 1.1.3 #15

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
env:
PROJECT_NAME: chost
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
target: [x86_64-apple-darwin, aarch64-apple-darwin]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
target: ${{matrix.target}}
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{matrix.target}}
- name: Compress
run: |
cd target/${{matrix.target}}/release
strip chost
tar czvf ../../../chost-${{matrix.target}}.zip chost
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
chost-${{matrix.target}}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}