Skip to content

build(deps): bump microsoft/setup-msbuild from 1.0.2 to 1.3.1 #953

build(deps): bump microsoft/setup-msbuild from 1.0.2 to 1.3.1

build(deps): bump microsoft/setup-msbuild from 1.0.2 to 1.3.1 #953

Workflow file for this run

name: Sample Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-samples:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-2022
steps:
- name: Install Windows SDK 10.0.16299
shell: pwsh
run: |
Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/p/?linkid=864422 -OutFile winsdk.exe
$startInfo = New-Object System.Diagnostics.ProcessStartInfo
$startInfo.FileName = "winsdk.exe"
$startInfo.Arguments = "/norestart /quiet"
$process = New-Object System.Diagnostics.Process
$process.StartInfo = $startInfo
$process.Start()
$process.WaitForExit()
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'microsoft'
java-version: '11'
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
# Install the .NET workload
- name: Setup .NET 6/7/8
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install DotNet workloads
shell: bash
run: |
dotnet workload install android
dotnet workload install ios
dotnet workload install tvos
dotnet workload install macos
dotnet workload install maui
# 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 }}