From 7468d5b62aec9b3c2cc0323e55d3ae5449d241b7 Mon Sep 17 00:00:00 2001 From: Mathieu Baudet <1105398+ma2bd@users.noreply.github.com> Date: Tue, 10 Oct 2023 11:33:55 -0700 Subject: [PATCH] build all the targets right away to speed up compilation (due to the "test" features) --- .github/workflows/databases.yml | 2 +- .github/workflows/rust.yml | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/databases.yml b/.github/workflows/databases.yml index 60b9a865da1d..a93399a79812 100644 --- a/.github/workflows/databases.yml +++ b/.github/workflows/databases.yml @@ -47,7 +47,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build run: | - cargo build --locked --features aws,scylladb + cargo build --locked --features aws,scylladb --all-targets - name: Setup local ScyllaDB instance run: | docker run --name scylladb -d -p 9042:9042 scylladb/scylla diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dbad47188d3b..3278c195d898 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -57,25 +57,19 @@ jobs: run: | cd examples cargo build --locked --release --target wasm32-unknown-unknown - - name: Compile the workspace with the default features (test) + - name: Compile the workspace with the default features run: | - cargo test --locked --no-run - - name: Compile the workspace with the default features (build) - run: | - cargo build --locked + cargo build --all-targets --locked - name: Run all tests using the default features run: | cargo test --locked - name: Run some extra execution tests with wasmtime run: | cargo test --locked -p linera-execution --features wasmtime - - name: Build Wasm test runner - # use debug mode to avoid building wasmtime in release mode - run: | - cargo build --locked --bin test-runner - name: Run Wasm application tests run: | cd examples + # use debug mode to avoid building wasmtime in release mode CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=../target/debug/test-runner cargo test --target wasm32-unknown-unknown cargo test --locked --target x86_64-unknown-linux-gnu - name: Run Witty integration tests