From 19e1b53046e2d8c787a0ce2b4a6b4f3a0e6e359a Mon Sep 17 00:00:00 2001 From: ToKiNoBug Date: Mon, 1 Apr 2024 17:00:43 +0800 Subject: [PATCH] Add tests with cmake --- .github/workflows/windows.yml | 13 ++++++++++++- Cargo.lock | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 172e4ba..5aa2782 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,7 +22,7 @@ jobs: run: cargo test --verbose - name: install deploy-dll run: cargo install --path . - - name: Test + - name: Test with command line run: | vcpkg install libzip --triplet=x64-windows mkdir test @@ -30,6 +30,16 @@ jobs: ls -l ./test deploy-dll ./test/zip.dll --cmake-prefix-path=C:/vcpkg/installed/x64-windows --verbose + - name: Test with cmake + run: | + cargo install --path . + mkdir build + cmake -S ./tests -B ./build -G Ninja -DCMAKE_PREFIX_PATH=C:/vcpkg/installed/x64-windows -DCMAKE_INSTALL_PREFIX=install + cmake --build ./build + cd ./build + cpack -G 7Z + cmake --install + - name: Make package run: | cargo build --release @@ -57,3 +67,4 @@ jobs: name: SharedLibDeployer-compat-1.0.0-win64 path: target/make-package if-no-files-found: error + diff --git a/Cargo.lock b/Cargo.lock index f8da940..147d621 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "shared_lib_deployer" -version = "1.2.1" +version = "1.2.2" dependencies = [ "clap", "walkdir",