From 1d9c2fc76e0b668bffa68b0d03efc3e501f6ecdb Mon Sep 17 00:00:00 2001 From: chemodax <53048645+chemodax@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:06:06 +0300 Subject: [PATCH] build.yml: Add matrix. --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c46089..3381534 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ on: jobs: build: + strategy: + matrix: + platform: [x64, x86, ARM64] + runs-on: windows-latest steps: @@ -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