-
Notifications
You must be signed in to change notification settings - Fork 203
61 lines (58 loc) · 1.54 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
push:
branches:
- develop
- main
pull_request:
workflow_dispatch:
jobs:
build_web:
name: Build and Test Web
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- run: npm install
- run: npm run build-ci
- run: npm run test-ci
build_csharp:
name: Build and Test C#
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6'
- run: npm install
- run: npm run build-csharp-ci
- run: npm run test-csharp-ci
build_kotlin:
name: Build and Test Kotlin
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-cache-v3-${{ github.job }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-cache-v3-${{ github.job }}-
- run: npm install
- run: npm run build-kotlin-ci
- run: npm run test-kotlin-ci
- run: ./src.kotlin/alphaTab/gradlew --stop