Skip to content

feat(model/cosyvoice): support hot_fix params and max_prompt_audio_length #17

feat(model/cosyvoice): support hot_fix params and max_prompt_audio_length

feat(model/cosyvoice): support hot_fix params and max_prompt_audio_length #17

Workflow file for this run

#
# Copyright 2024-2026 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: 🛠️ Build and Test
on:
push:
branches:
- main
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- main
- master
paths-ignore:
- '**.md'
workflow_dispatch: # Allow manual trigger
env:
JAVA_VERSION: '8'
JAVA_DISTRIBUTION: 'temurin'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
cache: 'maven'
- name: Run tests
run: mvn clean test
env:
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: target/surefire-reports/
build:
runs-on: ubuntu-22.04
needs: [test]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
cache: 'maven'
- name: Build project
run: mvn clean package -DskipTests
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: target/*.jar