-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.81 KB
/
build_main.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
name: '[BUILD] main'
on:
push:
branches:
- 'master'
jobs:
build-core:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
configurations: [Debug, Release]
platforms: [AnyCPU, x64]
name: 'build core in ${{ matrix.configurations }} on ${{ matrix.os }} for ${{ matrix.platforms }}'
runs-on: ${{ matrix.os }}
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- run: |
dotnet build Exomia.Vulkan.Api.Core.sln --configuration ${{ matrix.configurations }} --force --nologo -p:Platform="${{ matrix.platforms }}"
build-platforms:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
configurations: [Debug, Release]
platforms: [AnyCPU, x64]
name: 'build platform in ${{ matrix.configurations }} on ${{ matrix.os }} for ${{ matrix.platforms }}'
runs-on: ${{ matrix.os }}
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- run: |
dotnet build Exomia.Vulkan.Api.Platforms.sln --configuration ${{ matrix.configurations }} --force --nologo -p:Platform="${{ matrix.platforms }}"
check-build:
if: ${{ always() }}
name: '[CHECK] BUILD SUCCESS'
needs: [build-core, build-platforms]
runs-on: ubuntu-latest
steps:
- name: '[CHECK] build-core status'
if: ${{ needs.build-core.result != 'success' }}
run: exit 1
- name: '[CHECK] build-platforms status'
if: ${{ needs.build-platforms.result != 'success' }}
run: exit 1