forked from ionide/LanguageServerProtocol
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 803 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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false # we have timing issues on some OS, so we want them all to run
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
global-json-file: global.json
- name: Run build
run: dotnet build -c Release src
- name: Run tests
run: dotnet test --logger GitHubActions
- name: Run publish
run: dotnet pack -c Release -o release src
- name: Upload NuGet packages
uses: actions/upload-artifact@v2
with:
name: packages
path: release/