-
-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (50 loc) · 1.56 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
56
57
58
59
60
61
62
63
name: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
desktop:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
include:
- os: ubuntu-22.04
artifact_name: ./target/release/obs-cmd
asset_name: obs-cmd-linux-amd64
- os: windows-latest
artifact_name: ./target/release/obs-cmd.exe
asset_name: obs-cmd-windows-amd64.exe
- os: macos-latest
artifact_name: ./target/release/obs-cmd
asset_name: obs-cmd-macos-amd64
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Upload binaries
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
embedded:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install cross
run: cargo install cross
- name: Build for armv7-gnueabihf
run: cross build --target armv7-unknown-linux-gnueabihf --release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/armv7-unknown-linux-gnueabihf/release/obs-cmd
asset_name: obs-cmd-armv7
tag: ${{ github.ref }}