-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (30 loc) · 830 Bytes
/
Copy pathmain.yml
File metadata and controls
39 lines (30 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: dotnet build
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop", "release/*", "main" ]
workflow_dispatch:
env:
DOTNET_VERSION: 'v7.0.101' # The .NET SDK version to use
jobs:
build:
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v3
- name: Pull & update submodules
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup .NET Core
uses: actions/setup-dotnet@v2.1.0
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore ./src/
- name: Build
run: dotnet build ./src/ --no-restore