-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 765 Bytes
/
Copy pathbuild.yml
File metadata and controls
39 lines (30 loc) · 765 Bytes
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: Build solution
on:
push:
branches:
- main
- feature/*
pull_request:
branches:
- main
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'OpenApi.Tools.sln'
CORE_PROJECT: 'OpenApi.Tools.Core/OpenApi.Tools.Core.csproj'
TOOL_PROJECT: 'OpenApi.Tools.CLI/OpenApi.Tools.Cli.csproj'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: |
6.x
7.x
- name: Restore core project
run: dotnet restore $CORE_PROJECT
- name: Restore tool project
run: dotnet restore $TOOL_PROJECT
- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore