Skip to content

Commit 49744d2

Browse files
authored
Add GitHub Actions workflow for .NET builds
1 parent 576a4f7 commit 49744d2

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-latest
13+
14+
strategy:
15+
matrix:
16+
platform: [x64, x86, ARM64]
17+
18+
steps:
19+
- uses: actions/checkout@v6
20+
21+
- name: Setup .NET
22+
uses: actions/setup-dotnet@v5
23+
with:
24+
dotnet-version: 10.x
25+
cache: true
26+
cache-dependency-path: "**/packages.lock.json"
27+
28+
- name: Restore and validate lock files
29+
run: dotnet restore --use-lock-file --force-evaluate --locked-mode -p:Platform=${{ matrix.platform }}
30+
31+
- name: Build
32+
run: dotnet build --no-restore -p:Platform=${{ matrix.platform }}
33+
34+
- name: Test (x64 only)
35+
if: matrix.platform == 'x64'
36+
run: dotnet test --no-build -p:Platform=${{ matrix.platform }} --verbosity normal

0 commit comments

Comments
 (0)