-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.35 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
name: 'Build'
on:
- 'push'
jobs:
test:
strategy:
fail-fast: false
matrix:
system:
- 'windows-2019'
- 'ubuntu-latest'
runs-on: '${{matrix.system}}'
steps:
- uses: 'actions/checkout@v3'
- name: 'Setup .NET Core SDK'
uses: 'actions/setup-dotnet@v3'
with:
dotnet-version: '7.0.x'
- name: 'Test'
run: 'dotnet test -v minimal --filter "TestCategory!=Proprietary" -s Test.runsettings'
release:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
- name: 'Setup .NET Core SDK'
uses: 'actions/setup-dotnet@v3'
with:
dotnet-version: '7.0.x'
- name: 'Build'
run: 'dotnet build ZenKit -c Release -o __build && dotnet pack -c Release -o ./__publish/ -v detailed ZenKit'
- name: 'Publish'
uses: 'actions/upload-artifact@v3'
with:
name: 'NuGet Package'
path: '__publish'
- name: 'Copy Artifacts'
run: 'mkdir Artifacts && mv ZenKit/runtimes Artifacts/ && cp __build/ZenKit.dll Artifacts/ && echo "Copy the native library for your OS from the `runtime` folder into the same folder `ZenKit.dll` is in." > Artifacts/README.md'
- name: 'Publish'
uses: 'actions/upload-artifact@v3'
with:
name: 'Managed DLL'
path: 'Artifacts'