Skip to content

Commit

Permalink
GithubActions: Update Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Jun 14, 2022
1 parent cdabf26 commit 148acd1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
Set-PSDebug -Trace 1
cd ..
Invoke-WebRequest -Uri https://developers.yubico.com/yubihsm-shell/Releases/yubihsm-shell-$env:LIBYUBIHSM_VERSION.tar.gz -OutFile yubihsm-shell.tar.gz -UseBasicParsing
tar xf yubihsm-shell.tar.gz
#Invoke-WebRequest -Uri https://developers.yubico.com/yubihsm-shell/Releases/yubihsm-shell-$env:LIBYUBIHSM_VERSION.tar.gz -OutFile yubihsm-shell.tar.gz -UseBasicParsing
#tar xf yubihsm-shell.tar.gz
git clone https://github.com/Yubico/yubihsm-shell.git
C:/vcpkg/vcpkg.exe install openssl:x64-windows
$env:OPENSSL_ROOT_DIR ="C:/vcpkg/packages/openssl_x64-windows"
cd yubihsm-shell-$env:LIBYUBIHSM_VERSION
#cd yubihsm-shell-$env:LIBYUBIHSM_VERSION
cd yubihsm-shell
mkdir build; cd build
cmake -A x64 -DBUILD_ONLY_LIB=ON ..
cmake --build .
Expand All @@ -49,7 +51,8 @@ jobs:
rustup default stable-x86_64-pc-windows-gnu
$env:RUST_BACKTRACE=1
$env:YUBIHSM_LIB_DIR="$env:GITHUB_WORKSPACE/../yubihsm-shell-$env:LIBYUBIHSM_VERSION/build/lib/Debug"
#$env:YUBIHSM_LIB_DIR="$env:GITHUB_WORKSPACE/../yubihsm-shell-$env:LIBYUBIHSM_VERSION/build/lib/Debug"
$env:YUBIHSM_LIB_DIR="$env:GITHUB_WORKSPACE/../yubihsm-shell/build/lib/Debug"
cargo.exe build --release
install target/release/yubihsm-setup $env:GITHUB_WORKSPACE/artifact/yubihsm-setup
Expand Down

0 comments on commit 148acd1

Please sign in to comment.