-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (51 loc) · 1.58 KB
/
release.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
50
51
52
53
54
55
name: Package Release Flow
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust_toolchain: ["stable"]
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
artifact_name: viewercloud
asset_name: viewercloud-macos-amd64
profile_rustup: default
profile_ci_flow: ci-static-code-analysis-tasks
- os: ubuntu-latest
artifact_name: viewercloud
asset_name: viewercloud-linux-amd64
profile_rustup: default
profile_ci_flow: ci-static-code-analysis-tasks
- os: "windows-latest"
artifact_name: viewercloud.exe
asset_name: viewercloud-windows-amd64
profile_rustup: minimal
profile_ci_flow: none
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}