-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.37 KB
/
BuildTest.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
# ***********************************************************
# * TakymLib *
# * Copyright (C) 2020-2022 Yigty.ORG; all rights reserved. *
# * Copyright (C) 2020-2022 Takym. *
# * *
# * distributed under the MIT License. *
# ***********************************************************
name: "BuildTest"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
BuildTest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
bc: [ Debug, Release ]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Build
- name: BuildW
if: matrix.os == 'windows-latest'
run: dotnet build -c ${{ matrix.bc }}W
- name: Build
if: matrix.os != 'windows-latest'
run: dotnet build -c ${{ matrix.bc }}
# Test
- name: TestW
if: matrix.os == 'windows-latest'
run: dotnet test -c ${{ matrix.bc }}W --no-build --verbosity normal
- name: Test
if: matrix.os != 'windows-latest'
run: dotnet test -c ${{ matrix.bc }} --no-build --verbosity normal