forked from bit/DotRecastNetSim
feat: all platform
This commit is contained in:
parent
3ff14834f0
commit
8389343ccb
|
@ -5,24 +5,34 @@ name: .NET
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- '**.cs'
|
||||||
|
- '**.csproj'
|
||||||
|
- '**.sln'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-test:
|
||||||
|
name: build-and-test-${{matrix.os}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
dotnet-version: [ '7.0.x' ]
|
||||||
|
os: [ windows-latest, ubuntu-latest, macos-latest ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.x
|
dotnet-version: ${{ matrix.dotnet-version }}
|
||||||
- name: Restore dependencies
|
|
||||||
run: dotnet restore
|
- name: Restore dependencies
|
||||||
- name: Build
|
run: dotnet restore
|
||||||
run: dotnet build --no-restore
|
|
||||||
- name: Test
|
- name: Build
|
||||||
run: dotnet test --no-build --verbosity normal
|
run: dotnet build --no-restore
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: dotnet test --no-build --verbosity normal
|
||||||
|
|
Loading…
Reference in New Issue