Skip to content

Commit

Permalink
build all the targets right away to speed up compilation
Browse files Browse the repository at this point in the history
(due to the "test" features)
  • Loading branch information
ma2bd committed Oct 10, 2023
1 parent f8b8c30 commit 7468d5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7468d5b

Please sign in to comment.