-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d48b4e
commit 18fc442
Showing
3 changed files
with
166 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,83 @@ jobs: | |
name: release-windows-x64-${{ matrix.shared_lib }}-${{ matrix.with_tts }} | ||
path: build/install/* | ||
|
||
- name: Copy files | ||
shell: bash | ||
run: | | ||
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
shared_lib=${{ matrix.shared_lib }} | ||
if [[ $shared_lib == "ON" ]]; then | ||
suffix=shared | ||
else | ||
suffix=static | ||
fi | ||
if [[ ${{ matrix.with_tts }} == ON ]]; then | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x64-$suffix | ||
else | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x64-$suffix-no-tts | ||
fi | ||
mkdir $dst | ||
cp -a build/install/bin $dst/ | ||
cp -a build/install/lib $dst/ | ||
cp -a build/install/include $dst/ | ||
tar cjvf ${dst}.tar.bz2 $dst | ||
# https://huggingface.co/docs/hub/spaces-github-actions | ||
- name: Publish to huggingface | ||
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_CLONE_PROTECTION_ACTIVE=false | ||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface | ||
cd huggingface | ||
mkdir -p win64 | ||
cp -v ../sherpa-onnx-*.tar.bz2 ./win64 | ||
git status | ||
git lfs track "*.bz2" | ||
git add . | ||
git commit -m "upload sherpa-onnx-${SHERPA_ONNX_VERSION}" | ||
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs main | ||
- name: Release pre-compiled binaries and libs for Windows x64 | ||
if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x64*.tar.bz2 | ||
repo_name: k2-fsa/sherpa-onnx | ||
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
tag: v1.10.45 | ||
|
||
- name: Release pre-compiled binaries and libs for Windows x64 | ||
if: github.repository_owner == 'k2-fsa'&& github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x64*.tar.bz2 | ||
|
||
- name: Test offline Moonshine for windows x64 | ||
shell: bash | ||
run: | | ||
|
@@ -224,80 +301,3 @@ jobs: | |
export EXE=decode-file-c-api.exe | ||
.github/scripts/test-online-transducer.sh | ||
- name: Copy files | ||
shell: bash | ||
run: | | ||
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
shared_lib=${{ matrix.shared_lib }} | ||
if [[ $shared_lib == "ON" ]]; then | ||
suffix=shared | ||
else | ||
suffix=static | ||
fi | ||
if [[ ${{ matrix.with_tts }} == ON ]]; then | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x64-$suffix | ||
else | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x64-$suffix-no-tts | ||
fi | ||
mkdir $dst | ||
cp -a build/install/bin $dst/ | ||
cp -a build/install/lib $dst/ | ||
cp -a build/install/include $dst/ | ||
tar cjvf ${dst}.tar.bz2 $dst | ||
# https://huggingface.co/docs/hub/spaces-github-actions | ||
- name: Publish to huggingface | ||
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_CLONE_PROTECTION_ACTIVE=false | ||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface | ||
cd huggingface | ||
mkdir -p win64 | ||
cp -v ../sherpa-onnx-*.tar.bz2 ./win64 | ||
git status | ||
git lfs track "*.bz2" | ||
git add . | ||
git commit -m "upload sherpa-onnx-${SHERPA_ONNX_VERSION}" | ||
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs main | ||
- name: Release pre-compiled binaries and libs for Windows x64 | ||
if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x64*.tar.bz2 | ||
repo_name: k2-fsa/sherpa-onnx | ||
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
tag: v1.10.45 | ||
|
||
- name: Release pre-compiled binaries and libs for Windows x64 | ||
if: github.repository_owner == 'k2-fsa'&& github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x64*.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,86 @@ jobs: | |
name: release-windows-x86-${{ matrix.shared_lib }}-${{ matrix.with_tts }} | ||
path: build/install/* | ||
|
||
- name: Copy files | ||
shell: bash | ||
run: | | ||
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86 | ||
shared_lib=${{ matrix.shared_lib }} | ||
if [[ $shared_lib == "ON" ]]; then | ||
suffix=shared | ||
else | ||
suffix=static | ||
fi | ||
if [[ ${{ matrix.with_tts }} == ON ]]; then | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86-$suffix | ||
else | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86-$suffix-no-tts | ||
fi | ||
mkdir $dst | ||
cp -a build/install/bin $dst/ | ||
cp -a build/install/lib $dst/ | ||
cp -a build/install/include $dst/ | ||
tar cjvf ${dst}.tar.bz2 $dst | ||
# https://huggingface.co/docs/hub/spaces-github-actions | ||
- name: Publish to huggingface | ||
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_CLONE_PROTECTION_ACTIVE=false | ||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface | ||
cd huggingface | ||
mkdir -p win32 | ||
cp -v ../sherpa-onnx-*.tar.bz2 ./win32 | ||
git status | ||
git lfs track "*.bz2" | ||
git add . | ||
git commit -m "upload sherpa-onnx-${SHERPA_ONNX_VERSION}" | ||
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs main | ||
- name: Release pre-compiled binaries and libs for Windows x86 | ||
if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x86*.tar.bz2 | ||
repo_name: k2-fsa/sherpa-onnx | ||
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
tag: v1.10.45 | ||
|
||
- name: Release pre-compiled binaries and libs for Windows x86 | ||
if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x86*.tar.bz2 | ||
|
||
- name: Test offline Moonshine for windows x86 | ||
shell: bash | ||
run: | | ||
|
@@ -223,83 +303,3 @@ jobs: | |
export EXE=decode-file-c-api.exe | ||
.github/scripts/test-online-transducer.sh | ||
- name: Copy files | ||
shell: bash | ||
run: | | ||
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86 | ||
shared_lib=${{ matrix.shared_lib }} | ||
if [[ $shared_lib == "ON" ]]; then | ||
suffix=shared | ||
else | ||
suffix=static | ||
fi | ||
if [[ ${{ matrix.with_tts }} == ON ]]; then | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86-$suffix | ||
else | ||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-win-x86-$suffix-no-tts | ||
fi | ||
mkdir $dst | ||
cp -a build/install/bin $dst/ | ||
cp -a build/install/lib $dst/ | ||
cp -a build/install/include $dst/ | ||
tar cjvf ${dst}.tar.bz2 $dst | ||
# https://huggingface.co/docs/hub/spaces-github-actions | ||
- name: Publish to huggingface | ||
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_CLONE_PROTECTION_ACTIVE=false | ||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface | ||
cd huggingface | ||
mkdir -p win32 | ||
cp -v ../sherpa-onnx-*.tar.bz2 ./win32 | ||
git status | ||
git lfs track "*.bz2" | ||
git add . | ||
git commit -m "upload sherpa-onnx-${SHERPA_ONNX_VERSION}" | ||
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs main | ||
- name: Release pre-compiled binaries and libs for Windows x86 | ||
if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x86*.tar.bz2 | ||
repo_name: k2-fsa/sherpa-onnx | ||
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | ||
tag: v1.10.45 | ||
|
||
- name: Release pre-compiled binaries and libs for Windows x86 | ||
if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file_glob: true | ||
overwrite: true | ||
file: sherpa-onnx-*-win-x86*.tar.bz2 |