add cmake wrapper #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: install deploy-dll | |
run: cargo install --path . | |
- name: Test | |
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: Make package | |
run: | | |
cargo build --release | |
mkdir target/make-package | |
cargo install --path . --root target/make-package | |
cp C:/mingw64/bin/objdump.exe ./target/make-package/bin | |
deploy-dll ./target/make-package/bin/deploy-dll.exe --shallow-search-dir=C:/mingw64/bin | |
deploy-dll ./target/make-package/bin/objdump.exe --shallow-search-dir=C:/mingw64/bin | |
- name: Upload package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: SharedLibDeployer-1.0.0-win64 | |
path: target/make-package | |
if-no-files-found: error | |
- name: Make package(best compat) | |
run: | | |
deploy-dll ./target/make-package/bin/deploy-dll.exe --shallow-search-dir=C:/mingw64/bin --copy-vc-redist | |
deploy-dll ./target/make-package/bin/objdump.exe --shallow-search-dir=C:/mingw64/bin --copy-vc-redist | |
- name: Upload package(best compat) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: SharedLibDeployer-compat-1.0.0-win64 | |
path: target/make-package | |
if-no-files-found: error |