Skip to content

Commit

Permalink
build.yml: Add matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
chemodax authored Jan 7, 2024
1 parent e594a6a commit 1d9c2fc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:

jobs:
build:
strategy:
matrix:
platform: [x64, x86, ARM64]

runs-on: windows-latest

steps:
Expand All @@ -17,16 +21,16 @@ jobs:
uses: microsoft/setup-msbuild@v1.1

- name: Restore
run: msbuild pbench.sln /t:restore /p:Configuration=Release /p:Platform=x86
run: msbuild pbench.sln /t:restore /p:Configuration=Release /p:Platform=${{ matrix.platform }}

- name: Build
run: msbuild pbench.sln /t:build /p:Configuration=Release /p:Platform=x86 /p:RestorePackages=false
run: msbuild pbench.sln /t:build /p:Configuration=Release /p:Platform=${{ matrix.platform }} /p:RestorePackages=false

- name: Prepare artifact
run: |
mkdir -Path .\artifact
copy -Path .\_bin\Release-x86\pbench.exe -Destination .\artifact
copy -Path .\_bin\Release-x86\en-US\pbench.msi -Destination .\artifact
copy -Path .\_bin\Release-${{ matrix.platform }}\pbench.exe -Destination .\artifact
copy -Path .\_bin\Release-${{ matrix.platform }}\en-US\pbench.msi -Destination .\artifact
- name: Upload build artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 1d9c2fc

Please sign in to comment.