56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
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 Binstall
|
|
uses: cargo-bins/cargo-binstall@main
|
|
|
|
- name: install Tauri
|
|
run: cargo binstall tauri-cli --no-confirm
|
|
|
|
- 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
|