Skip to content

Commit e6656bb

Browse files
committed
added build-validation-test yaml to explore Github actions
1 parent 1d66cf5 commit e6656bb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ main ]
7+
paths:
8+
- '**.cs'
9+
- '**.csproj'
10+
11+
env:
12+
DOTNET_VERSION: '9.0.*' # The .NET SDK version to use
13+
14+
jobs:
15+
build:
16+
17+
name: build-${{matrix.os}}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-latest, windows-latest, macOS-latest]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Setup .NET Core
26+
uses: actions/setup-dotnet@v3
27+
with:
28+
dotnet-version: ${{ env.DOTNET_VERSION }}
29+
30+
- name: Install dependencies
31+
run: dotnet restore
32+
33+
- name: Build
34+
run: dotnet build --configuration Release --no-restore

0 commit comments

Comments
 (0)