Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
ci: cache online CPU Docker layers
LauraGPT144d2db5f1b3
diff --git a/.github/workflows/test-online-cpu-docker.yml b/.github/workflows/test-online-cpu-docker.ymlindex a2cfc77a9..c4b90605e 100644--- a/.github/workflows/test-online-cpu-docker.yml+++ b/.github/workflows/test-online-cpu-docker.yml@@ -31,21 +31,26 @@ concurrency:jobs:build-amd64:runs-on: ubuntu-24.04- timeout-minutes: 60+ timeout-minutes: 120steps:- uses: actions/checkout@v4- name: Validate entrypointrun: bash -n runtime/dockerfile/online-cpu-entrypoint.sh+ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3+- name: Build source image- run: |- docker buildx build \- --platform linux/amd64 \- --load \- --tag funasr-online-cpu:test \- --file runtime/dockerfile/Dockerfile.online.cpu \- .+ uses: docker/build-push-action@v6+ with:+ context: .+ file: runtime/dockerfile/Dockerfile.online.cpu+ platforms: linux/amd64+ load: true+ tags: funasr-online-cpu:test+ cache-from: type=gha,scope=online-cpu-amd64+ cache-to: type=gha,mode=max,scope=online-cpu-amd64- name: Smoke test linked serverrun: |diff --git a/tests/test_online_cpu_dockerfile.py b/tests/test_online_cpu_dockerfile.pyindex ab8eb23ed..efd1a4ab9 100644--- a/tests/test_online_cpu_dockerfile.py+++ b/tests/test_online_cpu_dockerfile.py@@ -61,9 +61,13 @@ def test_online_cpu_docker_workflow_builds_and_smokes_the_server():required = ["runtime/dockerfile/Dockerfile.online.cpu",- "docker buildx build",- "--platform linux/amd64",- "--load",+ "timeout-minutes: 120",+ "docker/setup-buildx-action@v3",+ "docker/build-push-action@v6",+ "platforms: linux/amd64",+ "load: true",+ "cache-from: type=gha,scope=online-cpu-amd64",+ "cache-to: type=gha,mode=max,scope=online-cpu-amd64","funasr-wss-server-2pass","--help","bash -n runtime/dockerfile/online-cpu-entrypoint.sh",