-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (29 loc) · 989 Bytes
/
build.yml
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
---
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
dotnet: [ '3.0.x', '3.1.x', '5.0.x' ]
name: Build project on .NET ${{ matrix.dotnet }}
steps:
- uses: actions/[email protected]
- name: Checkout submodules # checkout rest
shell: bash
run: |
# If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
# git config --global url."https://github.com/".insteadOf "[email protected]:"
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Setup dotnet
uses: actions/[email protected]
with:
dotnet-version: ${{ matrix.dotnet }}
- run: dotnet build .