From 796bdd9131ea2ff88f580f475304f9e0a317f807 Mon Sep 17 00:00:00 2001 From: Fabian Kaczmarczyck Date: Wed, 8 Nov 2023 16:59:05 +0100 Subject: [PATCH] Adds macos to the test matrix --- .github/workflows/ci.yml | 5 ++++- run_desktop_tests.sh | 31 ++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e96d865..0b5815a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,10 @@ concurrency: jobs: runtests: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} permissions: contents: read steps: diff --git a/run_desktop_tests.sh b/run_desktop_tests.sh index f5534972..9f23d9ab 100755 --- a/run_desktop_tests.sh +++ b/run_desktop_tests.sh @@ -76,24 +76,21 @@ echo "Checking that CTAP2 builds and links properly (1 set of features)..." cargo build --release --target=thumbv7em-none-eabi --features config_command,with_ctap1 ./third_party/tock/tools/sha256sum/target/debug/sha256sum target/thumbv7em-none-eabi/release/ctap2 -if [ -z "${TRAVIS_OS_NAME}" -o "${TRAVIS_OS_NAME}" = "linux" ] -then - echo "Running OpenSK library unit tests..." - cd libraries/opensk - cargo +nightly test --features std - cargo +nightly test --features std,config_command,with_ctap1 - cargo +nightly test --all-features - cd ../.. +echo "Running OpenSK library unit tests..." +cd libraries/opensk +cargo +nightly test --features std +cargo +nightly test --features std,config_command,with_ctap1 +cargo +nightly test --all-features +cd ../.. - echo "Running other unit tests..." - cargo test --lib --tests --bins --benches --features std - cargo test --lib --tests --bins --benches --all-features - cargo +nightly test --manifest-path libraries/cbor/Cargo.toml - cargo +nightly test --manifest-path libraries/persistent_store/Cargo.toml --features std - # Running release mode to speed up. This library is legacy anyway. - cargo +nightly test --manifest-path libraries/crypto/Cargo.toml --features std --release - cargo +nightly test --manifest-path tools/heapviz/Cargo.toml -fi +echo "Running other unit tests..." +cargo test --lib --tests --bins --benches --features std +cargo test --lib --tests --bins --benches --all-features +cargo +nightly test --manifest-path libraries/cbor/Cargo.toml +cargo +nightly test --manifest-path libraries/persistent_store/Cargo.toml --features std +# Running release mode to speed up. This library is legacy anyway. +cargo +nightly test --manifest-path libraries/crypto/Cargo.toml --features std --release +cargo +nightly test --manifest-path tools/heapviz/Cargo.toml echo "Checking that boards build properly..." make -C third_party/tock/boards/nordic/nrf52840dk_opensk