-
Notifications
You must be signed in to change notification settings - Fork 86
49 lines (42 loc) · 1.6 KB
/
release-osx.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
name: Release binaries for OSX
on:
push:
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
jobs:
release-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install Tauri
run: cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run: npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run: npm install
- name: cargo tauri build
working-directory: desktop
run:
rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin &&
cargo tauri build --target universal-apple-darwin --ci
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_*_universal.dmg
- name: Make a directory for output artifacts
run: mkdir -p target/artifacts
- name: Build release OSX universal binary
run: rustup target install aarch64-apple-darwin &&
cargo build --profile release-github --target x86_64-apple-darwin &&
cargo build --profile release-github --target aarch64-apple-darwin &&
lipo ./target/x86_64-apple-darwin/release-github/rqbit ./target/aarch64-apple-darwin/release-github/rqbit -create -output ./target/artifacts/rqbit-osx-universal
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-osx-universal