Skip to content

Commit 2f70fad

Browse files
committed
feat: add initial .NET CI workflow configuration
1 parent d9c8c6e commit 2f70fad

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/dotnet-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: .NET CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: "8.0.x"
20+
21+
- name: Cache NuGet packages
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.nuget/packages
25+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
26+
restore-keys: |
27+
${{ runner.os }}-nuget-
28+
29+
- name: Restore
30+
run: dotnet restore
31+
32+
# Debug build because it's faster.
33+
- name: Quick Build (Debug)
34+
run: dotnet build --no-restore

0 commit comments

Comments
 (0)