rename platform solutions #1356
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
# - name: Setup .NET | |
# uses: actions/setup-dotnet@v4 | |
# with: | |
# dotnet-version: 8.0.x | |
# - name: Cache .NET workloads | |
# uses: actions/cache@v4 | |
# with: | |
# path: ~\AppData\Local\Microsoft\dotnet\workloads | |
# key: ${{ runner.os }}-dotnet-workloads-${{ hashFiles('**/*.csproj') }} | |
# restore-keys: | | |
# ${{ runner.os }}-dotnet-workloads- | |
# - name: Install workloads | |
# run: dotnet workload install android ios | |
- name: Cache .NET nuget packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore dependencies | |
run: dotnet restore KNI.sln | |
# - name: Build | |
# run: dotnet build KNI.sln --no-restore --property:WarningLevel=1 | |
- name: Build Ref | |
run: dotnet build Platforms\Xna.Framework.Ref.csproj --property:WarningLevel=1 | |
- name: Build Blazor.GL | |
run: dotnet build Xna.Platform.Blazor.GL.sln --property:WarningLevel=1 | |
- name: Build WinForms.DX11 | |
run: dotnet build Xna.Platform.WinForms.DX11.sln --property:WarningLevel=1 | |
- name: Build SDL2.GL | |
run: dotnet build Xna.Platform.SDL2.GL.sln --property:WarningLevel=1 | |
- name: Build iOS.GL | |
run: dotnet build Xna.Platform.iOS.GL.sln --property:WarningLevel=1 | |
- name: Build Android.GL | |
run: dotnet build Xna.Platform.Android.GL.sln --property:WarningLevel=1 | |
# - name: Build Cardboard.GL | |
# run: dotnet build Xna.Platform.Cardboard.GL.sln --property:WarningLevel=1 | |
# - name: Build Windows UAP.DX11 | |
# run: dotnet msbuild Xna.Platform.UAP.DX11.sln --property:WarningLevel=1 | |
# - name: Test | |
# run: dotnet test --no-build --verbosity normal |