Skip to content

Commit f99aa42

Browse files
committed
added GitHub Actions workflow to automatically restore and build all .csproj files
1 parent b05a08b commit f99aa42

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: .NET 9 Build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET 9
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 9.0.x
21+
22+
- name: Restore all projects
23+
run: |
24+
find . -name "*.csproj" -print0 | xargs -0 -n1 dotnet restore
25+
26+
- name: Build all projects
27+
run: |
28+
find . -name "*.csproj" -print0 | xargs -0 -n1 dotnet build --no-restore --configuration Release

0 commit comments

Comments
 (0)