-
-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (37 loc) · 1.19 KB
/
csproj-builds.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
# This builds in all configurations and runtimes so we will catch any compilation errors prior to releasing with the automatic publish-nuget action.
name: CsProj Builds
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
csproj-build:
name: ${{ matrix.config }}-${{ matrix.devMode.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config: [Release, Debug]
devMode:
- {
name: devMode,
value: true
}
- {
name: userMode,
value: false
}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.X
- name: Build Core
run: |
dotnet build -c ${{ matrix.config }} /p:DeveloperMode=${{ matrix.devMode.value }} /p:IsNugetBuild=true
timeout-minutes: 10
- name: Build Analyzer
run: dotnet build ./ProtoPromise.Analyzer/ProtoPromise.Analyzer -c ${{ matrix.config }}
timeout-minutes: 10