Fangjun Kuang
Committed by GitHub

Add ccache to CI (#375)

... ... @@ -47,7 +47,7 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ... @@ -147,7 +147,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: sherpa-onnx-*linux-aarch64.tar.bz2
... ...
... ... @@ -49,7 +49,7 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ... @@ -103,7 +103,7 @@ jobs:
ls -lh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: sherpa-onnx-android-libs
path: ./jniLibs
... ...
... ... @@ -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
... ... @@ -47,7 +47,7 @@ jobs:
run: |
ls -lh ./apks/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./apks/*.apk
... ...
... ... @@ -38,7 +38,7 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ... @@ -140,7 +140,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: sherpa-onnx-*linux-arm-gnueabihf.tar.bz2
... ...
... ... @@ -25,7 +25,7 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
... ... @@ -49,7 +49,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
... ...
... ... @@ -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
... ...
... ... @@ -25,7 +25,7 @@ jobs:
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
... ... @@ -47,7 +47,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
... ...
... ... @@ -25,7 +25,7 @@ jobs:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
... ... @@ -44,7 +44,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
... ...
... ... @@ -25,7 +25,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
... ... @@ -61,7 +61,7 @@ jobs:
rm -rf ./wheelhouse
mv ./wheels ./wheelhouse
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
... ...
... ... @@ -26,7 +26,7 @@ jobs:
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build iOS
shell: bash
... ... @@ -57,7 +57,7 @@ jobs:
ls -lh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: sherpa-onnx-ios-libs
path: ./build-ios
... ...
... ... @@ -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
... ... @@ -42,7 +42,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-wheels
path: ./wheelhouse/*.whl
... ... @@ -53,7 +53,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
... ... @@ -119,7 +119,7 @@ jobs:
./run.sh
ls -lh packages
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
name: upload nuget packages
with:
name: nuget-packages
... ...
... ... @@ -19,7 +19,7 @@ jobs:
model: ["tiny.en", "base.en", "small.en", "medium.en", "tiny", "base", "small", "medium", "large", "large-v1", "large-v2"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
... ...
... ... @@ -40,10 +40,15 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}
- name: Display kotlin version
shell: bash
run: |
... ... @@ -58,5 +63,9 @@ jobs:
- name: Run JNI test
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
cd ./kotlin-api-examples
./run.sh
... ...
... ... @@ -50,13 +50,22 @@ jobs:
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.build_type }}-gpu
- name: Configure CMake
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
... ... @@ -64,6 +73,8 @@ jobs:
- name: Build sherpa-onnx for ubuntu
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
... ...
... ... @@ -51,13 +51,22 @@ jobs:
shared_lib: [ON, OFF]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.build_type }}-shared-${{ matrix.shared_lib }}
- name: Configure CMake
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=${{ matrix.shared_lib }} -DCMAKE_INSTALL_PREFIX=./install ..
... ... @@ -65,6 +74,8 @@ jobs:
- name: Build sherpa-onnx for ubuntu
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
... ...
... ... @@ -46,13 +46,22 @@ jobs:
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.build_type }}
- name: Configure CMake
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_OSX_ARCHITECTURES='arm64;x86_64' -DCMAKE_INSTALL_PREFIX=./install ..
... ... @@ -60,6 +69,8 @@ jobs:
- name: Build sherpa-onnx for macos
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
... ...
... ... @@ -40,7 +40,7 @@ jobs:
arch: [x64]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ... @@ -90,13 +90,13 @@ jobs:
ls -lh
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: streaming-speech-recognition-${{ matrix.arch }}
path: ./mfc-examples/${{ matrix.arch }}/Release/StreamingSpeechRecognition.exe
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: non-streaming-speech-recognition-${{ matrix.arch }}
path: ./mfc-examples/${{ matrix.arch }}/Release/NonStreamingSpeechRecognition.exe
... ...
... ... @@ -32,7 +32,7 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -44,13 +44,22 @@ jobs:
lib_type: [shared, static]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.build_type }}-lib-${{ matrix.lib_type }}
- name: Configure CMake
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
if [[ ${{ matrix.lib_type }} == "shared" ]]; then
... ... @@ -62,6 +71,8 @@ jobs:
- name: Build sherpa-onnx for ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
... ...
... ... @@ -31,7 +31,7 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: SSH to GitHub
run: |
... ... @@ -58,7 +58,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-wheels-for-go
path: ./wheelhouse/*.whl
... ... @@ -73,10 +73,20 @@ jobs:
arch: [x86_64, arm64]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-${{ matrix.arch }}
- name: Configure CMake
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} -DCMAKE_INSTALL_PREFIX=./install ..
... ... @@ -84,6 +94,8 @@ jobs:
- name: Build sherpa-onnx for macOS ${{ matrix.arch }}
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
... ... @@ -93,7 +105,7 @@ jobs:
file install/lib/lib*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-for-${{ matrix.arch }}
path: ./build/install/lib/
... ... @@ -107,7 +119,7 @@ jobs:
os: [windows-latest]
arch: [x64, Win32]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ... @@ -131,7 +143,7 @@ jobs:
ls -lh install/bin
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: sherpa-onnx-go-windows-${{ matrix.arch }}
path: ./build/install/lib/
... ... @@ -142,7 +154,7 @@ jobs:
needs: [linux-x86_64_wheel, macOS, windows]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Add SSH key
run: |
... ...
... ... @@ -39,10 +39,15 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}
- name: Display java version
shell: bash
run: |
... ... @@ -52,5 +57,9 @@ jobs:
- name: Run java test
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
cd ./java-api-examples
./runtest.sh
... ...
... ... @@ -43,10 +43,15 @@ jobs:
python-version: "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-python-${{ matrix.python-version }}
- name: Setup Python
uses: actions/setup-python@v2
with:
... ... @@ -60,6 +65,10 @@ jobs:
- name: Install sherpa-onnx
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --verbose .
- name: Test sherpa-onnx
... ...
... ... @@ -44,7 +44,7 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -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
... ...
... ... @@ -34,7 +34,7 @@ jobs:
arch: x86 # use 386 for GOARCH
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
... ...
... ... @@ -26,7 +26,7 @@ jobs:
arch: amd64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -35,7 +35,7 @@ jobs:
python-version: "3.7"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -28,10 +28,15 @@ jobs:
model_type: ["transducer", "paraformer", "nemo_ctc", "whisper", "tdnn"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-python-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
... ... @@ -45,10 +50,13 @@ jobs:
- name: Install sherpa-onnx
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --no-deps --verbose .
python3 -m pip install websockets
- name: Start server for transducer models
if: matrix.model_type == 'transducer'
shell: bash
... ...
... ... @@ -28,10 +28,15 @@ jobs:
model_type: ["transducer", "paraformer"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}-python-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
... ... @@ -45,6 +50,10 @@ jobs:
- name: Install sherpa-onnx
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --no-deps --verbose .
python3 -m pip install websockets
... ...
... ... @@ -46,7 +46,7 @@ jobs:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -47,7 +47,7 @@ jobs:
shared_lib: [ON, OFF]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...
... ... @@ -47,7 +47,7 @@ jobs:
shared_lib: [ON, OFF]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
... ...