Skip to content

Build - Win x64

Build - Win x64 #865

Workflow file for this run

name: Build - Win x64
on:
push:
branches: [ master ]
pull_request_review:
types: [ submitted ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
# We *only* want to run this if a collaborator or owner of the repo approves a pull request, or if something is merged into the main branch
if: ${{ github.event.ref == 'refs/heads/master' || (github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'OWNER')) }}
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0 # can't shallowly clone due to git versioning
- name: Clear output directory in DSP files
# We use SilentlyContinue here because it errors out if the folder does not exist otherwise
run: rm -R -ErrorAction SilentlyContinue "dist"
- name: Add remote build identifier
run: New-Item -Name .remoteBuild -ItemType File -force
# Add dotnet to the PATH: https://github.com/actions/setup-dotnet
- name: Setup dotnet.exe
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
# Build it
- name: Build the application
run: dotnet build -c ${{ matrix.configuration }}
# Upload it to the run results
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: build-artifacts-${{ matrix.configuration }}
path: dist\release