Skip to content

Commit

Permalink
Release 1.3.0 (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 authored May 15, 2024
2 parents cae9f7e + ee200f0 commit c93113f
Show file tree
Hide file tree
Showing 462 changed files with 28,677 additions and 12,312 deletions.
7 changes: 7 additions & 0 deletions .eclintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
};
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,32 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
labels:
- area-dependencies
- platform-javascript
schedule:
interval: "weekly"

- package-ecosystem: "nuget"
directory: "/src.csharp"
labels:
- area-dependencies
- platform-net
schedule:
interval: "weekly"

- package-ecosystem: "gradle"
directory: "/src.kotlin/alphaTab"
labels:
- area-dependencies
- platform-java
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
labels:
- area-dependencies
- platform-all
schedule:
interval: "weekly"
56 changes: 40 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,59 @@ on:
push:
branches:
- develop
- master
- main
pull_request:
workflow_dispatch:

jobs:
build_web:
name: Build and Test Web
runs-on: windows-2022
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '12.x'
node-version: 'lts/*'
- run: npm install
- run: npm run build-ci
- run: npm run test-ci
- run: npm run build
- run: npm run test

build_csharp:
name: Build and Test C#
runs-on: windows-2022
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '12.x'
- uses: actions/setup-dotnet@v1
node-version: 'lts/*'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
dotnet-version: '8'
- run: npm install
- run: npm run build-csharp-ci
- run: npm run test-csharp-ci
- run: npm run build-csharp
- run: npm run test-csharp

build_kotlin:
name: Build and Test Kotlin
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
- uses: actions/cache@v4
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
- run: npm run test-kotlin
- run: ./src.kotlin/alphaTab/gradlew --stop
5 changes: 0 additions & 5 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
Expand Down
175 changes: 90 additions & 85 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,103 +1,108 @@
name: Publish
on:

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
- cron: "10 0 * * *"
workflow_dispatch:

jobs:
nighty_web:
name: Web
runs-on: windows-2022
check_sha:
name: check_sha
runs-on: ubuntu-latest
outputs:
hit: ${{ steps.cache.outputs.cache-hit == 'true' }}
steps:
- name: Create cache file
run: |
mkdir check-sha
echo ${{ github.sha }} >> github-sha.txt
- name: Check SHA
id: check_sha
uses: actions/cache@v2
- run: touch dummy.txt

- uses: actions/cache@v4
id: cache
with:
path: check-sha
path: dummy.txt
key: check-sha-${{ github.sha }}

- name: Checkout the repo
if: steps.check_sha.outputs.cache-hit != 'true'
uses: actions/checkout@v2

- name: Setup Node
if: steps.check_sha.outputs.cache-hit != 'true'
uses: actions/setup-node@v2

nighty_web:
name: Web
needs: check_sha
if: needs.check_sha.outputs.hit == 'false'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '16'

- name: Build Project
if: steps.check_sha.outputs.cache-hit != 'true'
run: |
npm install
node ./scripts/update-version.js alpha ${{github.run_number}}
npm run build-ci
- uses: actions/setup-node@v2
if: steps.check_sha.outputs.cache-hit != 'true'
node-version: 'lts/*'
cache: 'npm'

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

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

- name: Publish to NPM (alpha)
if: steps.check_sha.outputs.cache-hit != 'true'
run: npm publish --access public --tag alpha

- run: npm publish --access public --tag alpha
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}

nightly_csharp:
name: C#
runs-on: windows-2022
needs: check_sha
if: needs.check_sha.outputs.hit == 'false'
runs-on: windows-latest
steps:
- name: Create cache file
run: |
mkdir check-sha
echo ${{ github.sha }} >> github-sha.txt
- name: Check SHA
id: check_sha
uses: actions/cache@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
path: check-sha
key: check-sha-${{ github.sha }}

- name: Checkout the repo
if: steps.check_sha.outputs.cache-hit != 'true'
uses: actions/checkout@v2

- name: Setup Node
if: steps.check_sha.outputs.cache-hit != 'true'
uses: actions/setup-node@v2
node-version: 'lts/*'
cache: 'npm'

- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"

- run: npm install
- 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

nightly_kotlin_android:
name: Kotlin (Android)
needs: check_sha
if: needs.check_sha.outputs.hit == 'false'
runs-on: windows-latest
env:
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}
SONATYPE_SIGNING_KEY_ID: ${{secrets.SONATYPE_SIGNING_KEY_ID}}
SONATYPE_SIGNING_PASSWORD: ${{secrets.SONATYPE_SIGNING_PASSWORD}}
SONATYPE_SIGNING_KEY: ${{secrets.SONATYPE_SIGNING_KEY}}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '16'

- name: Setup DotNet
if: steps.check_sha.outputs.cache-hit != 'true'
uses: actions/setup-dotnet@v1
node-version: 'lts/*'
cache: 'npm'

- uses: actions/setup-java@v4
with:
dotnet-version: |
6.0.x
java-version: "19"
distribution: "temurin"

- run: npm install
if: steps.check_sha.outputs.cache-hit != 'true'

- name: Update C# Version
if: steps.check_sha.outputs.cache-hit != 'true'
run: node ./scripts/update-csharp-version.js alpha ${{github.run_number}}

- name: Build Project
if: steps.check_sha.outputs.cache-hit != 'true'
run: npm run build-csharp-ci

- name: Publish AlphaTab.nupkg
if: steps.check_sha.outputs.cache-hit != 'true'
run: dotnet nuget push src.csharp\AlphaTab\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json

- name: Publish AlphaTab.Windows.nupkg
if: steps.check_sha.outputs.cache-hit != 'true'
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: node ./scripts/update-kotlin-version.js SNAPSHOT
- run: npm run build-kotlin

- run: .\gradlew.bat publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository
working-directory: ./src.kotlin/alphaTab/

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

Loading

0 comments on commit c93113f

Please sign in to comment.