forked from OpenTabletDriver/OpenTabletDriver
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (84 loc) · 3.35 KB
/
dotnet.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: .NET Core
on:
push:
branches:
- master
pull_request:
jobs:
linuxpublish:
runs-on: ubuntu-latest
name: Linux Publish
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Linux Publish
env:
runtime: linux-x64
framework: net5
options: --configuration Release -p:DebugType=embedded --self-contained false
run: |
dotnet publish OpenTabletDriver.Daemon $options --runtime $runtime --framework $framework -o build/$runtime
dotnet publish OpenTabletDriver.Console $options --runtime $runtime --framework $framework -o build/$runtime
dotnet publish OpenTabletDriver.UX.Gtk $options --runtime $runtime --framework $framework -o build/$runtime
- name: Copy Configurations
run: |
cp -vr ./OpenTabletDriver/Configurations/ build/linux-x64
- name: Upload Linux artifacts
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver linux-x64
path: build/linux-x64
macospublish:
runs-on: ubuntu-latest
name: MacOS Publish
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: MacOS Publish
env:
runtime: osx-x64
framework: net5
options: --configuration Release -p:DebugType=embedded -p:PublishTrimmed=false --self-contained false
run: |
dotnet publish OpenTabletDriver.Daemon $options --runtime $runtime --framework $framework -o build/$runtime
dotnet publish OpenTabletDriver.Console $options --runtime $runtime --framework $framework -o build/$runtime
dotnet publish OpenTabletDriver.UX.MacOS $options --runtime $runtime --framework $framework -o build/$runtime
- name: Copy Configurations
run: |
cp -vr ./OpenTabletDriver/Configurations/ build/osx-x64
- name: Upload MacOS artifacts
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver osx-x64
path: build/osx-x64
windowspublish:
runs-on: windows-latest
name: Windows Publish
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Windows Publish
env:
runtime: win-x64
framework: net5
run: |
$options= @('--configuration', 'Release', '-p:PublishSingleFile=true', '-p:DebugType=embedded', '--self-contained', 'false')
dotnet publish OpenTabletDriver.Daemon $options --runtime $ENV:runtime --framework $ENV:framework -o build/$ENV:runtime
dotnet publish OpenTabletDriver.Console $options --runtime $ENV:runtime --framework $ENV:framework -o build/$ENV:runtime
dotnet publish OpenTabletDriver.UX.Wpf $options --runtime $ENV:runtime --framework $ENV:framework-windows -o build/$ENV:runtime
- name: Copy Configurations
run: Copy-Item -Path "./OpenTabletDriver/Configurations/" -Destination "build/win-x64/Configurations/" -Recurse
- name: Upload Windows artifacts
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver win-x64
path: build/win-x64