-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.6 KB
/
Copy pathrelease.yml
File metadata and controls
60 lines (51 loc) · 1.6 KB
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
50
51
52
53
54
55
56
57
58
59
60
name: Release
on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
build:
name: Release binary
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact_name: assembler
asset_name: assembler-x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
artifact_name: assembler
asset_name: assembler-x86_64-unknown-linux-musl
- os: ubuntu-latest
target: x86_64-pc-windows-gnu
artifact_name: assembler.exe
asset_name: assembler-x86_64-pc-windows-gnu.exe
- os: macos-latest
target: x86_64-apple-darwin
artifact_name: assembler
asset_name: assembler-x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3.5.2
- name: Install Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true