Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jan 6, 2025
1 parent c0ef683 commit 7217131
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aarch64-linux-gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Display NDK HOME
Expand All @@ -45,7 +45,7 @@ jobs:
run: |
ls -lh ./apks/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./apks/*.apk

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/arm-linux-gnueabihf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-armv7l.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
ls -lh ./wheelhouse/
- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sherpa_ncnn-${{ env.SHERPA_NCNN_VERSION }}-cp${{ env.PYTHON_VERSION }}-cp${{ env.PYTHON_VERSION }}-linux_armv7l.whl.zip
path: ./wheelhouse/*.whl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-win32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
Expand All @@ -41,7 +41,7 @@ jobs:
run: |
ls -lh ./wheelhouse/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-win64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
git commit -m "add more wheels"
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-ncnn-wheels main
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dot-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
- name: Build wheels
Expand All @@ -40,7 +40,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-wheels
path: ./wheelhouse/*.whl
Expand All @@ -51,7 +51,7 @@ jobs:
needs: build-libs

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Retrieve artifact from ubuntu-latest
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
./run.sh
ls -lh packages
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
name: upload nuget packages
with:
name: nuget-packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
arch: x86 # use 386 for GOARCH

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
file bin/decode-file-c-api
- name: Upload binary sherpa-ncnn and sherpa-ncnn-microphone
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: sherpa-ncnn-pre-built-binaries-os-${{ matrix.os }}
path: ./build/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
file bin/decode-file-c-api
- name: Upload binary sherpa-ncnn and sherpa-ncnn-microphone
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: sherpa-ncnn-pre-built-binaries-os-${{ matrix.os }}
path: ./build/bin
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mfc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
arch: [x64, Win32]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
ls -lh $d/
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: sherpa-ncnn-${{ matrix.arch }}
path: ./sherpa-ncnn*.exe
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
arch: [x86_64, aarch64]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: SSH to GitHub
run: |
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-wheels-for-go-${{ matrix.arch }}
path: ./wheelhouse/*.whl
Expand All @@ -91,7 +91,7 @@ jobs:
arch: [x86_64, arm64]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure CMake
shell: bash
run: |
Expand All @@ -111,7 +111,7 @@ jobs:
file install/lib/lib*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-for-${{ matrix.arch }}
path: ./build/install/lib/
Expand All @@ -125,7 +125,7 @@ jobs:
os: [windows-latest]
arch: [x64, Win32]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -149,7 +149,7 @@ jobs:
ls -lh install/bin
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: sherpa-ncnn-go-windows-${{ matrix.arch }}
path: ./build/install/lib/
Expand All @@ -160,7 +160,7 @@ jobs:
needs: [linux, macOS, windows]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Add SSH key
run: |
Expand All @@ -170,37 +170,37 @@ jobs:
ssh github.com || true
- name: Retrieve artifact Linux x86_64
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ubuntu-latest-wheels-for-go-x86_64
path: ./linux_x86_64

- name: Retrieve artifact Linux aarch64
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ubuntu-latest-wheels-for-go-aarch64
path: ./linux_aarch64

- name: Retrieve artifact from macos-latest (x86_64)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: macos-latest-for-x86_64
path: ./macos-x86_64

- name: Retrieve artifact from macos-latest (arm64)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: macos-latest-for-arm64
path: ./macos-arm64

- name: Retrieve artifact from windows-latest (x64)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: sherpa-ncnn-go-windows-x64
path: ./windows-x64

- name: Retrieve artifact from windows-latest (Win32)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: sherpa-ncnn-go-windows-Win32
path: ./windows-win32
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swift-api-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
os: [macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-dot-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pip-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-x64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
os: windows-2022

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
os: windows-2022

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit 7217131

Please sign in to comment.