From 98b3d84fa5817a8c2d501d80a68a84c1944343c8 Mon Sep 17 00:00:00 2001 From: trevyn Date: Thu, 6 Jan 2022 12:45:59 +0300 Subject: [PATCH] Enable buildtime_bindgen tests on windows CI --- .github/workflows/main.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46169ce..f1071ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,12 +50,12 @@ jobs: - run: cargo test --features bundled --workspace --all-targets --verbose - run: cargo test --features bundled --workspace --doc --verbose - - name: Test Features - # TODO: clang is installed on these -- but `bindgen` can't find it... - if: matrix.os != 'windows-latest' - run: | - cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose - cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose + - name: Add llvm path on Windows + if: matrix.os == 'windows-latest' + run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + + - run: cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose + - run: cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose # TODO: move into own action for better caching - name: Static build @@ -97,11 +97,12 @@ jobs: - run: cargo test --features 'modern-full bundled-sqlcipher-vendored-openssl' --all-targets --workspace --verbose - run: cargo test --features 'modern-full bundled-sqlcipher-vendored-openssl' --doc --workspace --verbose - - name: Test Features - if: matrix.os != 'windows-latest' - run: | - cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose - cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose + - name: Add llvm path on Windows + if: matrix.os == 'windows-latest' + run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + + - run: cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose + - run: cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose winsqlite3: name: Test with winsqlite3