-
Notifications
You must be signed in to change notification settings - Fork 130
49 lines (49 loc) · 1.41 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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