Skip to content

Commit

Permalink
use msbuild for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
OwnageIsMagic authored Mar 29, 2024
1 parent e87a3fc commit 00e75af
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ on:
jobs:
build:

runs-on: windows-latest
strategy:
matrix:
configuration: [Debug, Release]

# 2019 for Microsoft.Net.Component.3.5.DeveloperTools
runs-on: windows-2019
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,10 +29,26 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
global-json-file: csharp/global.json
cache: true
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

- name: Restore dependencies
run: dotnet restore
run: msbuild /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

- name: Build
run: dotnet build --no-restore
run: msbuild /t:Build /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

# dotnet SDK can't find net30
# error MSB3644: The reference assemblies for .NETFramework,Version=v3.0 were not found.
# - name: Restore dependencies
# run: dotnet restore
# - name: Build
# run: dotnet build --no-restore
# - name: Test
# run: dotnet test --no-build --verbosity normal

0 comments on commit 00e75af

Please sign in to comment.