Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ jobs:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run build-web
- run: npm run test-web
id: test
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: test-results-web
path: |
test-data/**/*.new.png
test-data/**/*.diff.png
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png

build_csharp:
name: Build and Test C#
Expand All @@ -72,8 +72,8 @@ jobs:
with:
name: test-results-csharp
path: |
test-data/**/*.new.png
test-data/**/*.diff.png
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png

build_kotlin:
name: Build and Test Kotlin
Expand Down Expand Up @@ -111,6 +111,6 @@ jobs:
with:
name: test-results-kotlin
path: |
test-data/**/*.new.png
test-data/**/*.diff.png
- run: ./src.kotlin/alphaTab/gradlew --stop
packages/alphatab/test-data/**/*.new.png
packages/alphatab/test-data/**/*.diff.png
- run: ./packages/kotlin/src/gradlew --stop
34 changes: 26 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,33 @@ jobs:
node-version: 'lts/*'
cache: 'npm'

- run: node ./scripts/update-version.js alpha ${{github.run_number}}
- run: npm run update-version -- alpha ${{github.run_number}}
- run: npm ci
- run: npm run build
- run: npm run build-web
- run: npm pack
working-directory: ./packages/alphatab/
- run: npm pack
working-directory: ./packages/vite/
- run: npm pack
working-directory: ./packages/webpack/

- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/

- run: npm publish --access public --tag alpha
working-directory: ./packages/alphatab/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}

- run: npm publish --access public --tag alpha
working-directory: ./packages/vite/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}

- run: npm publish --access public --tag alpha
working-directory: ./packages/webpack/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}

Expand All @@ -66,12 +82,14 @@ jobs:
with:
dotnet-version: "8"

- run: npm run update-version -- alpha ${{github.run_number}}
- run: npm ci
- run: node ./scripts/update-csharp-version.js alpha ${{github.run_number}}
- run: npm run build-csharp

- run: dotnet nuget push src.csharp/AlphaTab/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
- run: dotnet nuget push src.csharp/AlphaTab.Windows/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
- run: dotnet nuget push AlphaTab/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
working-directory: ./packages/csharp/
- run: dotnet nuget push AlphaTab.Windows/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
working-directory: ./packages/csharp/

nightly_kotlin_android:
name: Kotlin (Android)
Expand All @@ -98,13 +116,13 @@ jobs:
java-version: "19"
distribution: "temurin"

- run: npm run update-version -- alpha ${{github.run_number}}
- run: npm ci
- run: node ./scripts/update-kotlin-version.js SNAPSHOT
- run: npm run build-kotlin

- run: ./gradlew publishToMavenCentral
working-directory: ./src.kotlin/alphaTab/
working-directory: ./packages/kotlin/src/

- run: ./gradlew --stop
working-directory: ./src.kotlin/alphaTab/
working-directory: ./packages/kotlin/src/

37 changes: 28 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,33 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- run: npm run update-version -- ${{github.run_number}}
- run: npm ci
- run: node ./scripts/update-version.js ${{github.run_number}}
- run: npm run build
- run: npm run build-web
- run: npm pack
working-directory: ./packages/alphatab/
- run: npm pack
working-directory: ./packages/vite/
- run: npm pack
working-directory: ./packages/webpack/
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- name: Publish to NPM (release)
- name: Publish to NPM (alphaTab release)
run: npm publish --access public
working-directory: ./packages/alphatab/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}
- name: Publish to NPM (Vite Plugin release)
run: npm publish --access public
working-directory: ./packages/vite/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}
- name: Publish to NPM (WebPack Plugin release)
run: npm publish --access public
working-directory: ./packages/webpack/
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}

Expand All @@ -43,11 +60,13 @@ jobs:
dotnet-version: '8'
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
- run: npm run update-version -- ${{github.run_number}}
- run: npm ci
- run: node ./scripts/update-csharp-version.js ${{github.run_number}}
- run: npm run build-csharp
- run: dotnet nuget push src.csharp/AlphaTab/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- run: dotnet nuget push src.csharp/AlphaTab.Windows/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- run: dotnet nuget push AlphaTab/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./packages/csharp/
- run: dotnet nuget push AlphaTab.Windows/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./packages/csharp/

release_kotlin_android:
name: Kotlin (Android)
Expand All @@ -71,12 +90,12 @@ jobs:
java-version: "19"
distribution: "temurin"

- run: npm run update-version -- ${{github.run_number}}
- run: npm ci
- run: node ./scripts/update-kotlin-version.js
- run: npm run build-kotlin
- run: ./gradlew publishToMavenCentral
working-directory: ./src.kotlin/alphaTab/
working-directory: ./packages/kotlin/

- run: ./gradlew --stop
working-directory: ./src.kotlin/alphaTab/
working-directory: ./packages/kotlin/

21 changes: 1 addition & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
dist/
node_modules/
private/
playground/
obj/
bin/
temp/
.idea/
.vs/
*.user
*.tgz
test-results/
debug.log
src/generated/VersionInfo.ts
font/bravura/bravura_alphatab_metadata.json

.gradle
build/
gradle-app.setting
!gradle-wrapper.jar
.gradletasknamecache
**/build/
local.properties
.rollup.cache
test-data/bundler/webpack/out/
test-data/bundler/vite/public/
test-data/bundler/dist/public/
/playground/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
alphaTab is licensed under MPL-2.0.
Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.

See LICENSE.header for further licenses of integrated submodules.
Check the LICENSE files of the individual packages for further details.

Mozilla Public License Version 2.0
==================================
Expand Down
21 changes: 0 additions & 21 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"files": {
"includes": [
"**/*.*",
"!dist",
"!.rollup.cache",
"!node_modules",
"!test-data",
"!src/generated"
],
"maxSize": 5242880
},
"formatter": {
"includes": [
"src/**",
"test/**",
"src.compiler/**",
"playground/**",
"playground-template/**"
],
"enabled": true,
"formatWithErrors": true,
"attributePosition": "auto",
Expand All @@ -28,12 +13,6 @@
"lineEnding": "lf"
},
"linter": {
"includes": [
"src/**",
"test/**",
"src.compiler/**",
"playground-template/**"
],
"enabled": true,
"rules": {
"style": {
Expand Down
Loading