-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.31 KB
/
build.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
name: "release"
# This will trigger the action on each push to the `release` branch.
on:
workflow_dispatch:
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- if: matrix.platform == 'macos-latest'
run: rustup target add aarch64-apple-darwin
- if: matrix.platform == 'macos-latest'
run: rustup target add x86_64-apple-darwin
- if: matrix.platform == 'macos-latest'
run: cargo build --release --all-features --target=aarch64-apple-darwin
- if: matrix.platform == 'macos-latest'
run: cargo build --release --all-features --target=x86_64-apple-darwin
- if: matrix.platform == 'windows-latest'
run: cargo build --release --all-features
- if: matrix.platform == 'macos-latest'
uses: imyanice/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__
releaseName: 'App v__VERSION__'
targets: 'aarch64-apple-darwin,x86_64-apple-darwin'
srcDir: './'