mirror of
https://github.com/simtactics/SimAINet.git
synced 2025-09-06 14:25:47 -04:00
Target .NET 6
- Cleaned up code with Global and Implicit Usings - Nullable is now enabled - New .NET workflow
This commit is contained in:
parent
c042b47b4a
commit
4210e21c65
26 changed files with 776 additions and 794 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
@ -1,23 +0,0 @@
|
|||
name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet: [ '3.1.200', '3.1.201' ]
|
||||
build_mode: [ 'Release', 'Debug' ]
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet }}
|
||||
- name: Build
|
||||
run: dotnet build src -c ${{ matrix.build_mode }}
|
||||
- name: Run tests
|
||||
run: dotnet test src -c ${{ matrix.build_mode }}
|
26
.github/workflows/dotnet.yml
vendored
Normal file
26
.github/workflows/dotnet.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, "releases/**"]
|
||||
pull_request:
|
||||
branches: [main, master, "releases/**"]
|
||||
jobs:
|
||||
build:
|
||||
timeout-minutes: 15
|
||||
continue-on-error: true
|
||||
runs-on: ${{ matrix.platforms }}
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet: ["6.0.x"]
|
||||
platforms: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet }}
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
Loading…
Add table
Add a link
Reference in a new issue