-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.28 KB
/
release.yaml
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
---
name: Publish Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
strategy:
matrix:
build-target:
- toolchain: stable
target: aarch64-unknown-linux-gnu
- toolchain: stable
target: x86_64-unknown-linux-gnu
- toolchain: stable
target: x86_64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.build-target.toolchain }}
profile: minimal
override: true
target: ${{ matrix.build-target.target }}
- name: Build Target
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --bin bimini --target ${{ matrix.build-target.target }}
- name: Package
run: |-
mv target/${{ matrix.build-target.target}}/release/bimini bimini-${{ matrix.build-target.target }}
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: 'bimini-*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}