-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (33 loc) · 1.09 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
name: build
on:
push:
branches:
- main
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
- uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0.x' # SDK Version to use.
- run: dotnet publish -c release -r linux-x64 --self-contained
working-directory: ./dotnet-wtrace
- run: dotnet publish -c release -r osx-x64 --self-contained
working-directory: ./dotnet-wtrace
- run: dotnet publish -c release -r win-x64 --self-contained
working-directory: ./dotnet-wtrace
- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-linux
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace.*
- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-windows
path: dotnet-wtrace/bin/release/net6.0/win-x64/publish/dotnet-wtrace.*
- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-osx
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace.*