Skip to content

build.yml: Add matrix. #25

build.yml: Add matrix.

build.yml: Add matrix. #25

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
platform: [x64, x86, ARM64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Restore
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=${{ matrix.platform }} /p:RestorePackages=false
- name: Prepare artifact
run: |
mkdir -Path .\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
with:
name: pbench
path: .\artifact