forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.15 KB
/
compile.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
46
47
48
name: compile
on:
pull_request:
push:
jobs:
compile:
name: Compile Server & Studio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Grep .Net version
run: |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].)
echo "DOTNET_VERSION=${dotnet_version}.x" >> $GITHUB_ENV
- name: Install 3.1 sdk
if: startsWith( env.DOTNET_VERSION, '3' )
uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Restore
run: |
git clean -xfd
dotnet restore
- name: Build Server
run: |
dotnet build
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Restore
run: |
npm install
npm run restore
working-directory: src/Raven.Studio
- name: Compile Studio
run: |
npm run compile
working-directory: src/Raven.Studio