From b261e69cb1fdce1d85cf9d726d75829ae7bc87c4 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Thu, 29 Aug 2024 11:05:06 +0100 Subject: [PATCH] updating test workflows --- .github/workflows/test.yml | 10 +++++++--- Cargo.toml | 19 +++++++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c90ff7d..e948949 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,8 @@ jobs: rustup toolchain install ${{ matrix.rust_version }} - uses: actions/checkout@v4 - run: rustup override set ${{ matrix.rust_version }} - - name: cargo check --workspace - run: cargo check --workspace + - name: cargo check + run: cargo check test: strategy: matrix: @@ -38,5 +38,9 @@ jobs: - uses: Swatinem/rust-cache@v2 with: prefix-key: v1 - - name: Run tests + - name: Run tests (whole workspace, including desktop) + if: ${{ matrix.os != 'ubuntu-latest' }} run: cargo test --workspace + - name: Run tests + if: ${{ matrix.os == 'ubuntu-latest' }} + run: cargo test diff --git a/Cargo.toml b/Cargo.toml index 8de3885..2e9d354 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [workspace] resolver = "2" members = [ - "crates/librqbit", "crates/rqbit", + "crates/librqbit", "crates/buffers", "crates/clone_to_owned", "crates/bencode", @@ -15,7 +15,22 @@ members = [ "crates/upnp-serve", "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] panic = "abort"