-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.49 KB
/
ci.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
57
name: BitMod.Nightlies
on: [push, pull_request]
jobs:
build:
name: Build Nightlies
needs: [test]
runs-on: ubuntu-latest
strategy:
matrix:
runtime: [ 'win-x64', 'win-x86', 'linux-x64', linux-musl-x64 ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-quality: 'ga'
- name: Build ${{ matrix.runtime }}
run: dotnet publish BitMod.Stable.sln -c Release -r ${{ matrix.runtime }}
- name: Upload Files
uses: actions/upload-artifact@v3
with:
name: nightly-${{ matrix.runtime }}
path: build/
test:
name: Test Nightlies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-quality: 'ga'
- name: Install dependencies
run: dotnet restore BitMod.sln
- name: Build
run: dotnet build tests/BitMod.Tests --framework net6.0 --configuration Release --no-restore
- name: Test
run: dotnet test tests/BitMod.Tests --framework net6.0 --configuration Release --no-build --no-restore --verbosity normal