forked from SubnauticaNitrox/Nitrox
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.05 KB
/
buildingMaster.yml
File metadata and controls
39 lines (35 loc) · 1.05 KB
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
name: Building Master
on:
push:
branches:
- master
jobs:
setup:
if: github.repository_owner == 'SubnauticaNitrox'
runs-on: [self-hosted, linux]
steps:
- name: Checking out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
build:
needs: setup
runs-on: [self-hosted, linux]
strategy:
matrix:
configuration: [Debug, Release]
runtime: [win-x64, linux-x64, linux-arm64]
steps:
- name: Build
run: dotnet build Nitrox.Launcher/Nitrox.Launcher.csproj -c ${{ matrix.configuration }} -r ${{ matrix.runtime }}
test:
needs: build
runs-on: [self-hosted, linux]
steps:
- name: Run Tests
continue-on-error: true
run: dotnet test Nitrox.Test/Nitrox.Test.csproj --logger trx --results-directory "test_results"
- name: Upload Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0
if: (!cancelled())
with:
files: |
test_results/*.trx