Tweak release.yaml to release files quicker
This commit is contained in:
parent
0751dbc5fc
commit
2653fb0515
5 changed files with 99 additions and 90 deletions
180
.github/workflows/release.yml
vendored
180
.github/workflows/release.yml
vendored
|
|
@ -12,102 +12,112 @@ jobs:
|
||||||
release-windows:
|
release-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install Tauri
|
- name: install Tauri
|
||||||
run:
|
run: cargo install tauri-cli --profile dev
|
||||||
cargo install tauri-cli --profile dev
|
- name: npm install (desktop)
|
||||||
- name: npm install (desktop)
|
working-directory: desktop
|
||||||
working-directory: desktop
|
run: npm install
|
||||||
run:
|
- name: npm install (librqbit/webui)
|
||||||
npm install
|
working-directory: crates/librqbit/webui
|
||||||
- name: npm install (librqbit/webui)
|
run: npm install
|
||||||
working-directory: crates/librqbit/webui
|
|
||||||
run:
|
|
||||||
npm install
|
|
||||||
- name: cargo tauri build
|
|
||||||
working-directory: desktop
|
|
||||||
run:
|
|
||||||
cargo tauri build --ci
|
|
||||||
|
|
||||||
- name: Build release
|
- name: cargo tauri build
|
||||||
run:
|
working-directory: desktop
|
||||||
cargo build --profile release-github
|
run: cargo tauri build --ci
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
target/release-github/rqbit.exe
|
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_5.0.1_x64_en-US.msi
|
||||||
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_5.0.0_x64_en-US.msi
|
|
||||||
|
- name: Build release
|
||||||
|
run: cargo build --profile release-github
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
files: |
|
||||||
|
target/release-github/rqbit.exe
|
||||||
|
|
||||||
cross-compile-on-macos:
|
cross-compile-on-macos:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install linux cross compiler
|
|
||||||
run:
|
|
||||||
brew tap messense/macos-cross-toolchains &&
|
|
||||||
brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf
|
|
||||||
|
|
||||||
- name: install Tauri
|
- name: install Tauri
|
||||||
run:
|
run: cargo install tauri-cli --profile dev
|
||||||
cargo install tauri-cli --profile dev
|
- name: npm install (desktop)
|
||||||
- name: npm install (desktop)
|
working-directory: desktop
|
||||||
working-directory: desktop
|
run: npm install
|
||||||
run:
|
- name: npm install (librqbit/webui)
|
||||||
npm install
|
working-directory: crates/librqbit/webui
|
||||||
- name: npm install (librqbit/webui)
|
run: npm install
|
||||||
working-directory: crates/librqbit/webui
|
|
||||||
run:
|
|
||||||
npm install
|
|
||||||
- name: cargo tauri build
|
|
||||||
working-directory: desktop
|
|
||||||
run:
|
|
||||||
rustup target add aarch64-apple-darwin &&
|
|
||||||
cargo tauri build --target universal-apple-darwin --ci
|
|
||||||
|
|
||||||
- name: Make a directory for output artifacts
|
- name: cargo tauri build
|
||||||
run:
|
working-directory: desktop
|
||||||
mkdir -p target/artifacts
|
run: rustup target add aarch64-apple-darwin &&
|
||||||
|
cargo tauri build --target universal-apple-darwin --ci
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
files: |
|
||||||
|
desktop/src-tauri/target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_5.0.1_universal.dmg
|
||||||
|
|
||||||
- name: Build release linux x86_64 binary
|
- name: Make a directory for output artifacts
|
||||||
run:
|
run: mkdir -p target/artifacts
|
||||||
rustup target install x86_64-unknown-linux-gnu &&
|
|
||||||
make release-linux-x86_64 &&
|
|
||||||
mv target/x86_64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-x86_64
|
|
||||||
|
|
||||||
- name: Build release linux armv6 binary
|
- name: Build release OSX universal binary
|
||||||
run:
|
run: rustup target install aarch64-apple-darwin &&
|
||||||
rustup target install arm-unknown-linux-gnueabihf &&
|
cargo build --profile release-github &&
|
||||||
make release-linux-armv6 &&
|
cargo build --profile release-github --target aarch64-apple-darwin &&
|
||||||
mv target/arm-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv6
|
lipo ./target/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
|
||||||
|
|
||||||
- name: Build release linux armv7 binary
|
- name: install linux cross compiler
|
||||||
run:
|
run: brew tap messense/macos-cross-toolchains &&
|
||||||
rustup target install armv7-unknown-linux-gnueabihf &&
|
brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf
|
||||||
make release-linux-armv7 &&
|
|
||||||
mv target/armv7-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv7
|
|
||||||
|
|
||||||
- name: Build release linux aarch64 binary
|
- name: Build release linux x86_64 binary
|
||||||
run:
|
run: rustup target install x86_64-unknown-linux-gnu &&
|
||||||
rustup target install aarch64-unknown-linux-gnu &&
|
make release-linux-x86_64 &&
|
||||||
make release-linux-aarch64 &&
|
mv target/x86_64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-x86_64
|
||||||
mv target/aarch64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-aarch64
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
files: |
|
||||||
|
target/artifacts/rqbit-linux-static-x86_64
|
||||||
|
|
||||||
- name: Build release OSX universal binary
|
- name: Build release linux armv6 binary
|
||||||
run:
|
run: rustup target install arm-unknown-linux-gnueabihf &&
|
||||||
rustup target install aarch64-apple-darwin &&
|
make release-linux-armv6 &&
|
||||||
cargo build --profile release-github &&
|
mv target/arm-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv6
|
||||||
cargo build --profile release-github --target aarch64-apple-darwin &&
|
|
||||||
lipo ./target/release-github/rqbit ./target/aarch64-apple-darwin/release-github/rqbit -create -output ./target/artifacts/rqbit-osx-universal
|
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
target/artifacts/rqbit-osx-universal
|
target/artifacts/rqbit-linux-static-armv6
|
||||||
target/artifacts/rqbit-linux-static-x86_64
|
|
||||||
target/artifacts/rqbit-linux-static-aarch64
|
|
||||||
target/artifacts/rqbit-linux-static-armv6
|
|
||||||
target/artifacts/rqbit-linux-static-armv7
|
|
||||||
desktop/src-tauri/target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_5.0.0_universal.dmg
|
|
||||||
|
|
||||||
|
- name: Build release linux armv7 binary
|
||||||
|
run: rustup target install armv7-unknown-linux-gnueabihf &&
|
||||||
|
make release-linux-armv7 &&
|
||||||
|
mv target/armv7-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv7
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
files: |
|
||||||
|
target/artifacts/rqbit-linux-static-armv7
|
||||||
|
|
||||||
|
- name: Build release linux aarch64 binary
|
||||||
|
run: rustup target install aarch64-unknown-linux-gnu &&
|
||||||
|
make release-linux-aarch64 &&
|
||||||
|
mv target/aarch64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-aarch64
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
files: |
|
||||||
|
target/artifacts/rqbit-linux-static-aarch64
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,4 @@ debug = true
|
||||||
|
|
||||||
[profile.release-github]
|
[profile.release-github]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = true
|
|
||||||
debug = false
|
debug = false
|
||||||
2
desktop/src-tauri/Cargo.lock
generated
2
desktop/src-tauri/Cargo.lock
generated
|
|
@ -3011,7 +3011,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rqbit-desktop"
|
name = "rqbit-desktop"
|
||||||
version = "5.0.0"
|
version = "5.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"base64 0.21.5",
|
"base64 0.21.5",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rqbit-desktop"
|
name = "rqbit-desktop"
|
||||||
version = "5.0.0"
|
version = "5.0.1"
|
||||||
description = "rqbit torrent client"
|
description = "rqbit torrent client"
|
||||||
authors = ["you"]
|
authors = ["you"]
|
||||||
license = ""
|
license = ""
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "rqbit-desktop",
|
"productName": "rqbit-desktop",
|
||||||
"version": "5.0.0"
|
"version": "5.0.1"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|
@ -42,4 +42,4 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue