Skip to content

build(deps): bump actions/setup-dotnet from 1 to 4 #912

build(deps): bump actions/setup-dotnet from 1 to 4

build(deps): bump actions/setup-dotnet from 1 to 4 #912

Workflow file for this run

name: Sample Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-samples:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
# Install the .NET Core workload
- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.x
- name: Install .NET 5.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Restore/Build the sample
run: msbuild SextantSample.sln /t:restore,build /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=$env:Configuration
working-directory: Sample
env:
Configuration: ${{ matrix.configuration }}