From 123c9e68ced9e9e8f5b33609c8dc53eed1ddb1d1 Mon Sep 17 00:00:00 2001 From: InNoobWeTrust Date: Thu, 22 Feb 2024 23:07:54 +0700 Subject: [PATCH] build(ci/nitro-node): add mising glibc dependency on Ubuntu runners --- .github/workflows/build-nitro-node.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-nitro-node.yml b/.github/workflows/build-nitro-node.yml index 7ebdb6fde..192d10394 100644 --- a/.github/workflows/build-nitro-node.yml +++ b/.github/workflows/build-nitro-node.yml @@ -14,7 +14,7 @@ on: workflow_dispatch: env: - LLM_MODEL_URL: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/resolve/main/tinyllama-1.1b-chat-v0.3.Q2_K.gguf + LLM_MODEL_URL: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf WHISPER_MODEL_URL: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny-q5_1.bin jobs: @@ -38,10 +38,27 @@ jobs: with: submodules: recursive + - name: Install dependencies + if: ${{ startswith(runner.os, 'ubuntu') }} + run: | + sudo apt-get install gawk bison -y + cd `mktemp -d` + wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.gz + tar -zxvf glibc-2.34.tar.gz && cd glibc-2.34 + mkdir glibc-build && cd glibc-build + ../configure --prefix=/opt/glibc-2.34 + make + sudo make install + - uses: actions/setup-node@v4 with: node-version: 18 + - name: Install yarn@1 + run: | + corepack enable + corepack install -g yarn@1 + - name: Restore cached model file id: cache-model-restore uses: actions/cache/restore@v4 @@ -54,7 +71,7 @@ jobs: id: download-model-file name: Download model file with: - url: ${{ env.LLM_MODEL_URL }} + url: "The model we are using is [tinyllama-1.1b](${{ env.LLM_MODEL_URL }})!" target: nitro-node/test/test_assets/ auto-match: true retry-times: 3