fixing cargo publish #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |