From fd7f5ab52b357cc1d6be430bf195dcfee36ddc6c Mon Sep 17 00:00:00 2001 From: Tom Delmas <1955774+tdelmas@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:58:47 +0000 Subject: [PATCH] Manual exaustive tests Signed-off-by: Tom Delmas <1955774+tdelmas@users.noreply.github.com> --- .github/workflows/exaustive-tests.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/exaustive-tests.yml diff --git a/.github/workflows/exaustive-tests.yml b/.github/workflows/exaustive-tests.yml new file mode 100644 index 0000000..a0a7dd9 --- /dev/null +++ b/.github/workflows/exaustive-tests.yml @@ -0,0 +1,41 @@ +name: Tests + +on: + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + name: Tests on rust toolchain ${{ matrix.version }} + strategy: + matrix: + version: [ + "nightly", + "stable", + "1.70", + "1.56", # 2021 edition + ] + + features: [ + "", + "std", + "serde", + "libm", + "std,serde", + "std,libm", + "serde,libm", + "std,serde,libm", + ] + + steps: + - uses: actions/checkout@v3 + - run: rustup toolchain install ${{ matrix.version }} + - run: cargo --version + - run: cargo xtask pre-build + - run: cd typed_floats && cargo build --no-default-features --features "${{ matrix.features }}" + - run: cd typed_floats && cargo test --no-default-features --features "${{ matrix.features }}" + - run: cd typed_floats && cargo build --no-default-features --features "${{ matrix.features }}" --release + - run: cd typed_floats && cargo test --no-default-features --features "${{ matrix.features }}" --release