-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.29 KB
/
build.yaml
File metadata and controls
42 lines (34 loc) · 1.29 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
40
41
42
name: .NET 9 Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore all projects
run: |
find . -name "*.csproj" -print0 | xargs -0 -n1 dotnet restore
- name: Build all projects
run: |
find . -name "*.csproj" -print0 | xargs -0 -n1 dotnet build --no-restore --configuration Release
# - name: Restore dependencies
# run: |
# dotnet restore src/API/API.csproj
# dotnet restore src/Application/Application.csproj
# dotnet restore src/Domain/Domain.csproj
# dotnet restore src/Infrastructure/Infrastructure.csproj
# - name: Build projects
# run: |
# dotnet build src/API/API.csproj --no-restore --configuration Release
# dotnet build src/Application/Application.csproj --no-restore --configuration Release
# dotnet build src/Domain/Domain.csproj --no-restore --configuration Release
# dotnet build src/Infrastructure/Infrastructure.csproj --no-restore --configuration Release