-
Notifications
You must be signed in to change notification settings - Fork 37
38 lines (37 loc) · 1 KB
/
main.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [linux-debug, linux-release]
include:
- build: linux-debug
os: ubuntu-latest
config: debug
- build: linux-release
os: ubuntu-latest
config: release
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
# workaround for actions/setup-dotnet#155
- name: Clear package cache
run: dotnet clean Arch.Extended.sln && dotnet nuget locals all --clear
- name: Restore packages
run: dotnet restore Arch.Extended.sln
- name: Build
run: dotnet build Arch.Extended.sln -c ${{ matrix.config }} --no-restore
- name: Test
run: dotnet test Arch.Extended.sln -c ${{ matrix.config }} -l "console;verbosity=detailed"