Skip to content

Commit

Permalink
Githubactions: Fix merged path on Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed May 22, 2024
1 parent a3bdf32 commit e431340
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ jobs:
- name: Create Windows Installer
run: |
Set-PSDebug -Trace 1
$PIVTOOL_SRC_DIR="$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-$env:RELEASE_VERSION"
Get-Childitem –Path C:\ -Include *_CRT_x86.msm -Recurse -ErrorAction SilentlyContinue
$MERGEDPATH = Get-ChildItem "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\*\MergeModules\Microsoft_VC141_CRT_x86.msm"
$PIVTOOL_SRC_DIR="$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-$env:RELEASE_VERSION"
$MERGEDPATH = Get-ChildItem "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\v143\MergeModules\Microsoft_VC143_CRT_x86.msm"
cd $PIVTOOL_SRC_DIR/resources/win
./make_installer.ps1 $PIVTOOL_SRC_DIR/yubico-piv-tool-$env:RELEASE_VERSION-x86 $env:RELEASE_VERSION x86 $env:WIX\bin "$MERGEDPATH"
Expand Down Expand Up @@ -132,7 +129,6 @@ jobs:
$PIVTOOL_SRC_DIR="$env:GITHUB_WORKSPACE\yubico-piv-tool-src\yubico-piv-tool-$env:RELEASE_VERSION"
$MERGEDPATH = Get-ChildItem "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\v143\MergeModules\Microsoft_VC143_CRT_x64.msm"
cd $PIVTOOL_SRC_DIR/resources/win
./make_installer.ps1 $PIVTOOL_SRC_DIR/yubico-piv-tool-$env:RELEASE_VERSION-x64 $env:RELEASE_VERSION x64 $env:WIX\bin "$MERGEDPATH"
cp $PIVTOOL_SRC_DIR/resources/win/yubico-piv-tool-$env:RELEASE_VERSION-x64.msi $env:GITHUB_WORKSPACE/artifact/
Expand Down

0 comments on commit e431340

Please sign in to comment.