updating test workflows
This commit is contained in:
parent
b6b68cef44
commit
b261e69cb1
2 changed files with 24 additions and 5 deletions
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
|
@ -25,8 +25,8 @@ jobs:
|
||||||
rustup toolchain install ${{ matrix.rust_version }}
|
rustup toolchain install ${{ matrix.rust_version }}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: rustup override set ${{ matrix.rust_version }}
|
- run: rustup override set ${{ matrix.rust_version }}
|
||||||
- name: cargo check --workspace
|
- name: cargo check
|
||||||
run: cargo check --workspace
|
run: cargo check
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -38,5 +38,9 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: v1
|
prefix-key: v1
|
||||||
- name: Run tests
|
- name: Run tests (whole workspace, including desktop)
|
||||||
|
if: ${{ matrix.os != 'ubuntu-latest' }}
|
||||||
run: cargo test --workspace
|
run: cargo test --workspace
|
||||||
|
- name: Run tests
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
run: cargo test
|
||||||
|
|
|
||||||
19
Cargo.toml
19
Cargo.toml
|
|
@ -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",
|
||||||
|
|
@ -15,7 +15,22 @@ members = [
|
||||||
"crates/upnp-serve",
|
"crates/upnp-serve",
|
||||||
"desktop/src-tauri",
|
"desktop/src-tauri",
|
||||||
]
|
]
|
||||||
default-members = ["crates/rqbit"]
|
|
||||||
|
# Everything except desktop
|
||||||
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue