Skip to content

Commit c93113f

Browse files
authored
Release 1.3.0 (#1482)
2 parents cae9f7e + ee200f0 commit c93113f

File tree

462 files changed

+28677
-12312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

462 files changed

+28677
-12312
lines changed

.eclintrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
root: true,
7+
};

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,32 @@ version: 2
22
updates:
33
- package-ecosystem: "npm"
44
directory: "/"
5+
labels:
6+
- area-dependencies
7+
- platform-javascript
58
schedule:
69
interval: "weekly"
710

811
- package-ecosystem: "nuget"
912
directory: "/src.csharp"
13+
labels:
14+
- area-dependencies
15+
- platform-net
16+
schedule:
17+
interval: "weekly"
18+
19+
- package-ecosystem: "gradle"
20+
directory: "/src.kotlin/alphaTab"
21+
labels:
22+
- area-dependencies
23+
- platform-java
24+
schedule:
25+
interval: "weekly"
26+
27+
- package-ecosystem: "github-actions"
28+
directory: "/"
29+
labels:
30+
- area-dependencies
31+
- platform-all
1032
schedule:
1133
interval: "weekly"

.github/workflows/build.yml

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,59 @@ on:
33
push:
44
branches:
55
- develop
6-
- master
6+
- main
77
pull_request:
88
workflow_dispatch:
99

1010
jobs:
1111
build_web:
1212
name: Build and Test Web
13-
runs-on: windows-2022
13+
runs-on: windows-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1717
with:
18-
node-version: '12.x'
18+
node-version: 'lts/*'
1919
- run: npm install
20-
- run: npm run build-ci
21-
- run: npm run test-ci
20+
- run: npm run build
21+
- run: npm run test
2222

2323
build_csharp:
2424
name: Build and Test C#
25-
runs-on: windows-2022
25+
runs-on: windows-latest
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-node@v2
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
2929
with:
30-
node-version: '12.x'
31-
- uses: actions/setup-dotnet@v1
30+
node-version: 'lts/*'
31+
- uses: actions/setup-dotnet@v4
3232
with:
33-
dotnet-version: |
34-
6.0.x
33+
dotnet-version: '8'
3534
- run: npm install
36-
- run: npm run build-csharp-ci
37-
- run: npm run test-csharp-ci
35+
- run: npm run build-csharp
36+
- run: npm run test-csharp
37+
38+
build_kotlin:
39+
name: Build and Test Kotlin
40+
runs-on: windows-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: 'lts/*'
46+
- uses: actions/setup-java@v4
47+
with:
48+
java-version: '19'
49+
distribution: 'temurin'
50+
- uses: actions/cache@v4
51+
with:
52+
path: |
53+
~/.gradle/caches
54+
~/.gradle/wrapper
55+
key: ${{ runner.os }}-gradle-cache-v3-${{ github.job }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
56+
restore-keys: |
57+
${{ runner.os }}-gradle-cache-v3-${{ github.job }}-
58+
- run: npm install
59+
- run: npm run build-kotlin
60+
- run: npm run test-kotlin
61+
- run: ./src.kotlin/alphaTab/gradlew --stop

.github/workflows/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: ${{ github.actor == 'dependabot[bot]' }}
1212
steps:
13-
- name: Dependabot metadata
14-
id: metadata
15-
uses: dependabot/[email protected]
16-
with:
17-
github-token: "${{ secrets.GITHUB_TOKEN }}"
1813
- name: Enable auto-merge for Dependabot PRs
1914
run: gh pr merge --auto --squash "$PR_URL"
2015
env:

.github/workflows/publish.yml

Lines changed: 90 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,108 @@
11
name: Publish
2-
on:
2+
3+
on:
34
schedule:
4-
- cron: '0 0 * * *'
5-
workflow_dispatch:
6-
5+
- cron: "10 0 * * *"
6+
workflow_dispatch:
7+
78
jobs:
8-
nighty_web:
9-
name: Web
10-
runs-on: windows-2022
9+
check_sha:
10+
name: check_sha
11+
runs-on: ubuntu-latest
12+
outputs:
13+
hit: ${{ steps.cache.outputs.cache-hit == 'true' }}
1114
steps:
12-
- name: Create cache file
13-
run: |
14-
mkdir check-sha
15-
echo ${{ github.sha }} >> github-sha.txt
16-
17-
- name: Check SHA
18-
id: check_sha
19-
uses: actions/cache@v2
15+
- run: touch dummy.txt
16+
17+
- uses: actions/cache@v4
18+
id: cache
2019
with:
21-
path: check-sha
20+
path: dummy.txt
2221
key: check-sha-${{ github.sha }}
23-
24-
- name: Checkout the repo
25-
if: steps.check_sha.outputs.cache-hit != 'true'
26-
uses: actions/checkout@v2
27-
28-
- name: Setup Node
29-
if: steps.check_sha.outputs.cache-hit != 'true'
30-
uses: actions/setup-node@v2
22+
23+
nighty_web:
24+
name: Web
25+
needs: check_sha
26+
if: needs.check_sha.outputs.hit == 'false'
27+
runs-on: windows-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- uses: actions/setup-node@v4
3132
with:
32-
node-version: '16'
33-
34-
- name: Build Project
35-
if: steps.check_sha.outputs.cache-hit != 'true'
36-
run: |
37-
npm install
38-
node ./scripts/update-version.js alpha ${{github.run_number}}
39-
npm run build-ci
40-
41-
- uses: actions/setup-node@v2
42-
if: steps.check_sha.outputs.cache-hit != 'true'
33+
node-version: 'lts/*'
34+
cache: 'npm'
35+
36+
- run: npm install
37+
- run: node ./scripts/update-version.js alpha ${{github.run_number}}
38+
- run: npm run build
39+
- run: npm pack
40+
41+
- uses: actions/setup-node@v4
4342
with:
44-
node-version: '16'
43+
node-version: 'lts/*'
4544
registry-url: https://registry.npmjs.org/
46-
47-
- name: Publish to NPM (alpha)
48-
if: steps.check_sha.outputs.cache-hit != 'true'
49-
run: npm publish --access public --tag alpha
45+
46+
- run: npm publish --access public --tag alpha
5047
env:
5148
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}
52-
49+
5350
nightly_csharp:
5451
name: C#
55-
runs-on: windows-2022
52+
needs: check_sha
53+
if: needs.check_sha.outputs.hit == 'false'
54+
runs-on: windows-latest
5655
steps:
57-
- name: Create cache file
58-
run: |
59-
mkdir check-sha
60-
echo ${{ github.sha }} >> github-sha.txt
61-
62-
- name: Check SHA
63-
id: check_sha
64-
uses: actions/cache@v2
56+
- uses: actions/checkout@v4
57+
58+
- uses: actions/setup-node@v4
6559
with:
66-
path: check-sha
67-
key: check-sha-${{ github.sha }}
68-
69-
- name: Checkout the repo
70-
if: steps.check_sha.outputs.cache-hit != 'true'
71-
uses: actions/checkout@v2
72-
73-
- name: Setup Node
74-
if: steps.check_sha.outputs.cache-hit != 'true'
75-
uses: actions/setup-node@v2
60+
node-version: 'lts/*'
61+
cache: 'npm'
62+
63+
- uses: actions/setup-dotnet@v4
64+
with:
65+
dotnet-version: "8"
66+
67+
- run: npm install
68+
- run: node ./scripts/update-csharp-version.js alpha ${{github.run_number}}
69+
- run: npm run build-csharp
70+
71+
- run: dotnet nuget push src.csharp\AlphaTab\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
72+
- run: dotnet nuget push src.csharp\AlphaTab.Windows\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
73+
74+
nightly_kotlin_android:
75+
name: Kotlin (Android)
76+
needs: check_sha
77+
if: needs.check_sha.outputs.hit == 'false'
78+
runs-on: windows-latest
79+
env:
80+
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
81+
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
82+
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}
83+
SONATYPE_SIGNING_KEY_ID: ${{secrets.SONATYPE_SIGNING_KEY_ID}}
84+
SONATYPE_SIGNING_PASSWORD: ${{secrets.SONATYPE_SIGNING_PASSWORD}}
85+
SONATYPE_SIGNING_KEY: ${{secrets.SONATYPE_SIGNING_KEY}}
86+
steps:
87+
- uses: actions/checkout@v4
88+
89+
- uses: actions/setup-node@v4
7690
with:
77-
node-version: '16'
78-
79-
- name: Setup DotNet
80-
if: steps.check_sha.outputs.cache-hit != 'true'
81-
uses: actions/setup-dotnet@v1
91+
node-version: 'lts/*'
92+
cache: 'npm'
93+
94+
- uses: actions/setup-java@v4
8295
with:
83-
dotnet-version: |
84-
6.0.x
85-
96+
java-version: "19"
97+
distribution: "temurin"
98+
8699
- run: npm install
87-
if: steps.check_sha.outputs.cache-hit != 'true'
88-
89-
- name: Update C# Version
90-
if: steps.check_sha.outputs.cache-hit != 'true'
91-
run: node ./scripts/update-csharp-version.js alpha ${{github.run_number}}
92-
93-
- name: Build Project
94-
if: steps.check_sha.outputs.cache-hit != 'true'
95-
run: npm run build-csharp-ci
96-
97-
- name: Publish AlphaTab.nupkg
98-
if: steps.check_sha.outputs.cache-hit != 'true'
99-
run: dotnet nuget push src.csharp\AlphaTab\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
100-
101-
- name: Publish AlphaTab.Windows.nupkg
102-
if: steps.check_sha.outputs.cache-hit != 'true'
103-
run: dotnet nuget push src.csharp\AlphaTab.Windows\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
100+
- run: node ./scripts/update-kotlin-version.js SNAPSHOT
101+
- run: npm run build-kotlin
102+
103+
- run: .\gradlew.bat publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository
104+
working-directory: ./src.kotlin/alphaTab/
105+
106+
- run: .\gradlew.bat --stop
107+
working-directory: ./src.kotlin/alphaTab/
108+

0 commit comments

Comments
 (0)