Merge pull request #225 from ikatson/desktop-same-workspace

Desktop same workspace
This commit is contained in:
Igor Katson 2024-08-29 11:55:31 +01:00 committed by GitHub
commit 510769886b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 2393 additions and 88 deletions

View file

@ -32,7 +32,7 @@ jobs:
with: with:
generate_release_notes: true generate_release_notes: true
files: | files: |
desktop/src-tauri/target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_*_universal.dmg target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_*_universal.dmg
- name: Make a directory for output artifacts - name: Make a directory for output artifacts
run: mkdir -p target/artifacts run: mkdir -p target/artifacts

View file

@ -29,7 +29,7 @@ jobs:
with: with:
generate_release_notes: true generate_release_notes: true
files: | files: |
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_*_x64_en-US.msi target/release/bundle/msi/rqbit-desktop_*_x64_en-US.msi
- name: Build release - name: Build release
run: cargo build --profile release-github run: cargo build --profile release-github

View file

@ -27,18 +27,6 @@ jobs:
- run: rustup override set ${{ matrix.rust_version }} - run: rustup override set ${{ matrix.rust_version }}
- name: cargo check - name: cargo check
run: cargo check run: cargo check
check-desktop:
runs-on: windows-latest
steps:
- name: rustup toolchain install 1.75
run: |
rustup toolchain install 1.75
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup override set 1.75
- name: cargo check desktop
working-directory: desktop/src-tauri
run: cargo check
test: test:
strategy: strategy:
matrix: matrix:
@ -48,5 +36,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal - run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
prefix-key: v1
- name: Run tests (whole workspace, including desktop)
if: ${{ matrix.os != 'ubuntu-latest' }}
run: cargo test --workspace
- name: Run tests - name: Run tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo test run: cargo test

1
.taurignore Normal file
View file

@ -0,0 +1 @@
crates/librqbit/webui/

2433
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
[workspace] [workspace]
resolver = "2" resolver = "2"
members = [ members = [
"crates/librqbit",
"crates/rqbit", "crates/rqbit",
"crates/librqbit",
"crates/buffers", "crates/buffers",
"crates/clone_to_owned", "crates/clone_to_owned",
"crates/bencode", "crates/bencode",
@ -11,11 +11,26 @@ members = [
"crates/peer_binary_protocol", "crates/peer_binary_protocol",
"crates/dht", "crates/dht",
"crates/upnp", "crates/upnp",
"crates/tracker_comms", "crates/upnp-serve", "crates/tracker_comms",
"crates/upnp-serve",
"desktop/src-tauri",
] ]
[profile.dev] # Everything except desktop
panic = "abort" default-members = [
"crates/rqbit",
"crates/librqbit",
"crates/buffers",
"crates/clone_to_owned",
"crates/bencode",
"crates/sha1w",
"crates/librqbit_core",
"crates/peer_binary_protocol",
"crates/dht",
"crates/upnp",
"crates/tracker_comms",
"crates/upnp-serve",
]
[profile.release] [profile.release]
panic = "abort" panic = "abort"

View file

@ -37,5 +37,3 @@ gethostname = "0.5.0"
# this feature is used for production builds or when `devPath` points to the filesystem # this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!! # DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"] custom-protocol = ["tauri/custom-protocol"]
[workspace]