-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (63 loc) · 2.1 KB
/
build_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
64
65
66
67
68
69
name: 'binaries'
on:
push:
tags:
- '*'
jobs:
build-classifier:
strategy:
fail-fast: false
matrix:
include:
- platform: ubuntu-20.04
artifact_name: bn-classifier
asset_name: bn-classifier-linux-amd64
- platform: windows-latest
artifact_name: bn-classifier.exe
asset_name: bn-classifier-windows-amd64
- platform: macos-latest
artifact_name: bn-classifier
asset_name: bn-classifier-macos-amd64
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: compile classifier binary
run: |
(cd classifier && cargo build --release)
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: classifier/target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
build-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref }}
releaseName: 'App v__VERSION__' # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false