Skip to content

Commit

Permalink
Update workflow for wix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Lolle2000la committed Nov 3, 2023
1 parent 539a8fb commit 5f0e71e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ jobs:
run: dotnet build --configuration Release
- name: Test
run: dotnet test .\tests\ImageSort.UnitTests\ImageSort.UnitTests.csproj --configuration Release --no-build
- name: Setup MSBuild.exe
if: ${{ github.event_name == 'release' }}
uses: microsoft/setup-msbuild@v1
- name: Build WIX project
if: ${{ github.event_name == 'release' }}
env:
GITHUB_ACTIONS_CI: true
run: |
cd .\src\ImageSort.WindowsSetup\;
dotnet gitversion /updatewixversionfile | Out-String;
MSBuild.exe /p:Configuration=Release /p:Platform=x64 /p:OutputPath=..\..\artifacts\x64 /p:BuildProjectReferences=false | Out-String;
MSBuild.exe /p:Configuration=Release /p:Platform=x86 /p:OutputPath=..\..\artifacts\x86 /p:BuildProjectReferences=false | Out-String;
dotnet tool install --global wix
dotnet build -c Release -r win-x86 -p:Platform=x86
dotnet build -c Release -r win-x64 -p:Platform=x64
cd ..\..;
- name: Upload x86 MSI file
id: upload-x86-msi-file
Expand Down

0 comments on commit 5f0e71e

Please sign in to comment.