release #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CLICOLOR_FORCE: 1 | |
jobs: | |
build: | |
name: Publish for ${{ matrix.binary_target }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
binary_target: x86_64-unknown-linux-musl | |
- os: ubuntu-latest | |
binary_target: x86_64-unknown-linux-gnu | |
- os: windows-latest | |
binary_target: x86_64-pc-windows-msvc | |
- os: macos-latest | |
binary_target: x86_64-apple-darwin | |
- os: macos-latest | |
binary_target: aarch64-apple-darwin | |
steps: | |
- name: Install musl tools | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install musl-tools | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Update rust | |
run: | | |
rustup override set stable | |
rustup update stable | |
rustup target add ${{ matrix.binary_target }} | |
- name: Build Binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: run | |
args: --bin cargo-make --target-dir target_ci -- make --env CARGO_MAKE_RELEASE_FLOW_TARGET=${{ matrix.binary_target }} zip-release-ci-flow | |
- name: Upload Binaries | |
uses: svenstaro/upload-release-action@v1-release | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: '*.zip' | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |