-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (48 loc) · 1.62 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Bonsai.ML
on:
push:
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
ContinuousIntegrationBuild: true
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- name: Windows x64
os: windows-latest
rid: win-x64
- name: Linux x64
os: ubuntu-22.04
rid: linux-x64
configuration: ['Debug', 'Release']
name: ${{matrix.platform.name}} ${{matrix.configuration}}
runs-on: ${{matrix.platform.os}}
steps:
# ----------------------------------------------------------------------- Checkout
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
# ----------------------------------------------------------------------- Setup tools
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
# ----------------------------------------------------------------------- Build
- name: Restore NuGet Packages
run: dotnet restore Bonsai.ML.sln
- name: Build Solution
run: dotnet build Bonsai.ML.sln --no-restore --configuration ${{matrix.configuration}}
# ----------------------------------------------------------------------- Test
- name: Run Tests
run: dotnet test Bonsai.ML.sln --no-restore --no-build --configuration ${{matrix.configuration}} --verbosity normal