-
Notifications
You must be signed in to change notification settings - Fork 7
87 lines (79 loc) · 2.51 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
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: Build Project (Debug)
on:
push:
branches: [ "main", "v0.1.0.x-saas", "v0.1.1.x-saas" ]
pull_request:
branches: [ "main", "v0.1.0.x-saas", "v0.1.1.x-saas" ]
jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation (Windows)
if: matrix.runs-on == 'windows-latest'
run: cd tools ; ./build.cmd Debug ; cd ..
- name: Solution Compilation (Unix)
if: matrix.runs-on != 'windows-latest'
run: make dbg
- name: Testing
run: dotnet test --no-build --configuration Debug
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: unit-test-log-${{ matrix.runs-on }}
path: "private/Nitrocid.Tests/KSTest/net8.0/UnitTestDebug.log"
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: unit-test-log-ms-${{ matrix.runs-on }}
path: "private/Nitrocid.Tests/KSTest/net8.0/TestResults"
wix-amd64:
strategy:
fail-fast: false
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: cd tools ; ./build.cmd Debug ; cd ..
- name: Installer Solution Compilation
run: dotnet build -p:Platform=x64 public/Nitrocid.Installers/Nitrocid.Installer.sln
- uses: actions/upload-artifact@v4
with:
name: installer-x64-msi
path: "public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/x64/Debug"
wix-arm64:
strategy:
fail-fast: false
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: cd tools ; ./build.cmd Debug ; cd ..
- name: Installer Solution Compilation
run: dotnet build -p:Platform=ARM64 public/Nitrocid.Installers/Nitrocid.Installer.sln
- uses: actions/upload-artifact@v4
with:
name: installer-arm64-msi
path: "public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/ARM64/Debug"