Fix publishing apks to huggingface (#1121)
Save APKs for each release in a separate directory. Huggingface requires that each directory cannot contain more than 1000 files. Since we have so many tts models and for each model we need to build APKs of 4 different ABIs, it is a workaround for the huggingface's constraint by placing them into separate directories for different releases.
This commit is contained in:
10
.github/workflows/apk-tts-engine.yaml
vendored
10
.github/workflows/apk-tts-engine.yaml
vendored
@@ -2,6 +2,8 @@ name: apk-tts-engine
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- apk
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
||||
|
||||
@@ -161,14 +163,18 @@ jobs:
|
||||
export GIT_LFS_SKIP_SMUDGE=1
|
||||
export GIT_CLONE_PROTECTION_ACTIVE=false
|
||||
|
||||
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
|
||||
echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
|
||||
|
||||
git clone https://huggingface.co/csukuangfj/sherpa-onnx-apk huggingface
|
||||
cd huggingface
|
||||
git fetch
|
||||
git pull
|
||||
git merge -m "merge remote" --ff origin main
|
||||
|
||||
mkdir -p tts-engine-2
|
||||
cp -v ../apks/*.apk ./tts-engine-2/
|
||||
d=tts-engine-new/$SHERPA_ONNX_VERSION
|
||||
mkdir -p $d
|
||||
cp -v ../apks/*.apk $d/
|
||||
git status
|
||||
git lfs track "*.apk"
|
||||
git add .
|
||||
|
||||
Reference in New Issue
Block a user