-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (35 loc) · 1.15 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
name: Release
on:
push:
tags:
- '*'
jobs:
linux-bin:
name: Build Linux musl binary
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- run: rustup target add x86_64-unknown-linux-musl
- uses: actions/checkout@v4
- run: cargo build --release --locked --target=x86_64-unknown-linux-musl
- run: tar c ab-av1 | zstd -T0 -19 > ab-av1-${{ github.ref_name }}-x86_64-unknown-linux-musl.tar.zst
working-directory: target/x86_64-unknown-linux-musl/release/
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/x86_64-unknown-linux-musl/release/ab-av1-${{ github.ref_name }}-x86_64-unknown-linux-musl.tar.zst
tag: ${{ github.ref }}
overwrite: true
win-bin:
name: Build Windows binary
runs-on: windows-latest
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo build --release --locked
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/ab-av1.exe
tag: ${{ github.ref }}
overwrite: true