Skip to content

Commit 445e18a

Browse files
Create dotnetCI.yml
1 parent 6fc1386 commit 445e18a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/dotnetCI.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: .NET-CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
Windows:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v4
16+
with:
17+
dotnet-version: 8.0.x
18+
- name: Restore dependencies
19+
run: dotnet restore
20+
- name: Build
21+
run: dotnet build -c Release --no-restore
22+
23+
Linux:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: 8.0.x
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
- name: Build
34+
run: dotnet build -c Release --no-restore
35+
36+
Mac:
37+
runs-on: macos-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Setup .NET
41+
uses: actions/setup-dotnet@v4
42+
with:
43+
dotnet-version: 8.0.x
44+
- name: Restore dependencies
45+
run: dotnet restore
46+
- name: Build
47+
run: dotnet build -c Release --no-restore

0 commit comments

Comments
 (0)