Skip to content

Commit

Permalink
Add tests with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ToKiNoBug committed Apr 1, 2024
1 parent 67553d2 commit 19e1b53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,24 @@ 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
cp C:/vcpkg/installed/x64-windows/bin/zip.dll ./test
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
Expand Down Expand Up @@ -57,3 +67,4 @@ jobs:
name: SharedLibDeployer-compat-1.0.0-win64
path: target/make-package
if-no-files-found: error

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19e1b53

Please sign in to comment.