-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.02 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
name: build
on:
workflow_dispatch:
inputs:
runs-on:
description: 'The operating system to run the job on'
required: true
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest
dotnet-version:
description: 'dotnet sdk version'
required: false
type: string
default: '9.x'
workflow_call:
inputs:
runs-on:
description: 'The operating system to run the job on'
required: true
type: string
dotnet-version:
description: 'dotnet sdk version'
required: false
type: string
default: '9.x'
jobs:
build:
runs-on: ${{inputs.runs-on}}
steps:
- uses: actions/checkout@v4
- name: dotnet-setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{inputs.dotnet-version}}
- name: dotnet-restore
run: dotnet restore
- name: dotnet-build
run: dotnet build --tl --no-restore -c Release