-
Notifications
You must be signed in to change notification settings - Fork 243
109 lines (105 loc) · 2.86 KB
/
build.yml
File metadata and controls
109 lines (105 loc) · 2.86 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build
on:
push:
branches:
- develop
- main
pull_request:
workflow_dispatch:
jobs:
lint:
name: Linting and TypeCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm install
- run: npm run generate-typescript
- run: npm run lint-ci
if: ${{ always() }}
- run: npm run typecheck
if: ${{ always() }}
build_web:
name: Build and Test Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm run build-web
- run: npm run test-web
- run: npm run build-language-server
- run: npm run build-monaco
id: test
- uses: actions/upload-artifact@v7
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: test-results-web
path: |
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png
build_csharp:
name: Build and Test C#
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '8'
- run: npm ci
- run: npm run build-csharp
- run: npm run test-csharp
id: test
- uses: actions/upload-artifact@v7
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: test-results-csharp
path: |
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png
build_kotlin:
name: Build and Test Kotlin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- uses: actions/setup-java@v5
with:
java-version: '19'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false
- run: npm ci
- run: npm run build-kotlin
- run: npm run test-kotlin
id: test
- uses: actions/upload-artifact@v7
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: test-results-kotlin
path: |
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png
- run: ./packages/kotlin/src/gradlew --stop