Skip to content

Commit cb2feb7

Browse files
author
Roland Peelen
committed
Release builds
1 parent f2f92ad commit cb2feb7

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
on:
3+
release:
4+
types:
5+
- created
6+
jobs:
7+
cancel-previous-runs:
8+
name: Cancel Previous Runs
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: Cancel Previous Runs
12+
uses: styfle/[email protected]
13+
with:
14+
access_token: ${{ github.token }}
15+
release:
16+
name: release ${{ matrix.target }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os:
21+
- macos-latest
22+
- ubuntu-latest
23+
- windows-latest
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
ref: ${{ github.ref }}
29+
- name: Install Cargo
30+
run: curl https://sh.rustup.rs -sSf | sh
31+
- name: Build
32+
run: cargo build --release
33+
- name: Upload binaries to release
34+
uses: svenstaro/upload-release-action@v2
35+
with:
36+
repo_token: ${{ secrets.GITHUB_TOKEN }}
37+
file: target/release/rewatch
38+
asset_name: rewatch-${{ matrix.os }}
39+
tag: ${{ github.ref }}
40+
overwrite: true
41+

0 commit comments

Comments
 (0)