From b7790f7a75a748d875d80f9306180c028c334d1b Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 11 May 2021 11:19:16 +0200 Subject: [PATCH 1/4] test: Add Windows. --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 259d256..49b9012 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,9 +29,14 @@ jobs: target-name: 'x86_64-apple-darwin' rust-toolchain: 'stable' + - id: 'windows-amd64' + os: 'windows-latest' + target-name: 'x86_64-pc-windows-msvc' + rust-toolchain: 'stable' + # As soon as one job fails in the matrix, all the other # in-progress jobs are canceled. - fail-fast: false + fail-fast: true runs-on: ${{ matrix.target.os }} From 5d7749bccebaed36711f7617cba5a3d590940ba5 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 21 May 2021 14:18:46 +0200 Subject: [PATCH 2/4] test(ci): Avoid installing `rake`. --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a8124a7..ebedc60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,7 +67,6 @@ jobs: shell: bash run: | export PATH="$HOME/.cargo/bin:$PATH" - gem install rake gem install bundler just build From a6f882ece1fa5878b2a4e9a38a4ebaac083b712e Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 21 May 2021 14:34:07 +0200 Subject: [PATCH 3/4] test(ci): Do not fail fast. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebedc60..c96dd52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: # As soon as one job fails in the matrix, all the other # in-progress jobs are canceled. - fail-fast: true + fail-fast: false runs-on: ${{ matrix.target.os }} From 77dede54e5d69096940e07d9d823ec626e230353 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 21 May 2021 15:04:55 +0200 Subject: [PATCH 4/4] test(ci) Try `NO_LINK_RUTIE` on Windows. --- .github/workflows/test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c96dd52..ecefc64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,15 +63,22 @@ jobs: export PATH="$HOME/.cargo/bin:$PATH" test -f $HOME/.cargo/bin/just || cargo install just - - name: Compile the library + - name: Compile the library and run the tests + if: ${{ matrix.target.id != 'windows-amd64' }} shell: bash run: | export PATH="$HOME/.cargo/bin:$PATH" gem install bundler just build + just test-all - - name: Run the tests + - name: Compile the library and run the tests (Windows) + if: ${{ matrix.target.id == 'windows-amd64' }} + env: + NO_LINK_RUTIE: true shell: bash run: | export PATH="$HOME/.cargo/bin:$PATH" + gem install bundler + just build just test-all