-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1011 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
35
36
37
38
39
40
41
42
43
44
45
name: build
on:
push:
pull_request:
branches: [main]
paths:
- "**.fs"
- "**.fsproj"
env:
DOTNET_VERSION: ${{ vars.DOTNET_VERSION }} # The .NET SDK version to use
jobs:
build:
name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: paket-cache
key: ${{ runner.os }}-paket-${{ hashFiles('paket.lock') }}
restore-keys: |
${{ runner.os }}-paket-
- name: Install buildtools
run: dotnet tool restore
- name: Install dependencies
run: dotnet paket restore && dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore