mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-12 11:32:17 +00:00
small fixes
This commit is contained in:
parent
e5f793ab44
commit
cb0172c6c6
33
.github/workflows/macos-cpu-wheels.yml
vendored
33
.github/workflows/macos-cpu-wheels.yml
vendored
@ -2,6 +2,8 @@ name: build-wheels-cpu-macos
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- wheels
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -82,20 +84,20 @@ jobs:
|
|||||||
# https://huggingface.co/docs/hub/spaces-github-actions
|
# https://huggingface.co/docs/hub/spaces-github-actions
|
||||||
- name: Publish to huggingface
|
- name: Publish to huggingface
|
||||||
if: github.repository_owner == 'csukuangfj'
|
if: github.repository_owner == 'csukuangfj'
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||||
run: |
|
uses: nick-fields/retry@v2
|
||||||
git config --global user.email "csukuangfj@gmail.com"
|
with:
|
||||||
git config --global user.name "Fangjun Kuang"
|
max_attempts: 10
|
||||||
|
timeout_seconds: 10
|
||||||
|
shell: bash
|
||||||
|
command: |
|
||||||
|
git config --global user.email "csukuangfj@gmail.com"
|
||||||
|
git config --global user.name "Fangjun Kuang"
|
||||||
|
|
||||||
export GIT_LFS_SKIP_SMUDGE=1
|
|
||||||
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
|
||||||
cur_path=$PWD
|
|
||||||
|
|
||||||
function push_to_huggingface() {
|
|
||||||
cd $cur_path
|
|
||||||
rm -rf huggingface
|
rm -rf huggingface
|
||||||
|
export GIT_LFS_SKIP_SMUDGE=1
|
||||||
|
|
||||||
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
||||||
cd huggingface
|
cd huggingface
|
||||||
git pull
|
git pull
|
||||||
@ -105,14 +107,5 @@ jobs:
|
|||||||
git status
|
git status
|
||||||
git lfs track "*.whl"
|
git lfs track "*.whl"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "upload macos-cpu wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}"
|
git commit -m "upload macos wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}"
|
||||||
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main
|
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf huggingface
|
|
||||||
}
|
|
||||||
function retry() {
|
|
||||||
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
|
|
||||||
}
|
|
||||||
|
|
||||||
retry push_to_huggingface
|
|
||||||
|
2
.github/workflows/ubuntu-cuda-wheels.yml
vendored
2
.github/workflows/ubuntu-cuda-wheels.yml
vendored
@ -2,8 +2,6 @@ name: build-wheels-cuda-ubuntu
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- wheels
|
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
31
.github/workflows/windows-x64-cpu-wheels.yml
vendored
31
.github/workflows/windows-x64-cpu-wheels.yml
vendored
@ -2,6 +2,8 @@ name: build-wheels-cpu-win64
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- wheels
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -82,20 +84,20 @@ jobs:
|
|||||||
# https://huggingface.co/docs/hub/spaces-github-actions
|
# https://huggingface.co/docs/hub/spaces-github-actions
|
||||||
- name: Publish to huggingface
|
- name: Publish to huggingface
|
||||||
if: github.repository_owner == 'csukuangfj'
|
if: github.repository_owner == 'csukuangfj'
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||||
run: |
|
uses: nick-fields/retry@v2
|
||||||
git config --global user.email "csukuangfj@gmail.com"
|
with:
|
||||||
git config --global user.name "Fangjun Kuang"
|
max_attempts: 10
|
||||||
|
timeout_seconds: 10
|
||||||
|
shell: bash
|
||||||
|
command: |
|
||||||
|
git config --global user.email "csukuangfj@gmail.com"
|
||||||
|
git config --global user.name "Fangjun Kuang"
|
||||||
|
|
||||||
export GIT_LFS_SKIP_SMUDGE=1
|
|
||||||
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
|
||||||
cur_path=$PWD
|
|
||||||
|
|
||||||
function push_to_huggingface() {
|
|
||||||
cd $cur_path
|
|
||||||
rm -rf huggingface
|
rm -rf huggingface
|
||||||
|
export GIT_LFS_SKIP_SMUDGE=1
|
||||||
|
|
||||||
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
git clone https://huggingface.co/csukuangfj/kaldifeat huggingface
|
||||||
cd huggingface
|
cd huggingface
|
||||||
git pull
|
git pull
|
||||||
@ -107,12 +109,3 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "upload windows-cpu wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}"
|
git commit -m "upload windows-cpu wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}"
|
||||||
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main
|
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf huggingface
|
|
||||||
}
|
|
||||||
function retry() {
|
|
||||||
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
|
|
||||||
}
|
|
||||||
|
|
||||||
retry push_to_huggingface
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user