diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0e026d0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + strategy: + matrix: + platform: [x64, ARM64] + + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore /p:Platform=${{matrix.platform}} + + - name: Test + if: ${{matrix.platform == 'x64'}} + run: dotnet test --no-build --verbosity normal /p:Platform=${{matrix.platform}}