Skip to content

Commit

Permalink
build(ci/nitro-node): add mising glibc dependency on Ubuntu runners
Browse files Browse the repository at this point in the history
  • Loading branch information
InNoobWeTrust committed Feb 22, 2024
1 parent 238ba0b commit 4bb1b9d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build-nitro-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions nitro-node/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ endif

clean:
ifeq ($(OS),Windows_NT)
powershell -Command "Remove-Item -Recurse -Force -Path *.tgz, .yarn, yarn.lock, package-lock.json, bin, dist"
powershell -Command "Get-ChildItem -Path . -Include node_modules -Recurse -Directory | Remove-Item -Recurse -Force"
powershell -Command "Get-ChildItem -Path . -Include *.tgz, .yarn, yarn.lock, package-lock.json -Recurse | Remove-Item -Recurse -Force"
powershell -Command "Get-ChildItem -Path . -Include node_modules, bin, dist -Recurse -Directory | Remove-Item -Recurse -Force"
else
rm -rf *.tgz .yarn yarn.lock package-lock.json bin dist
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
Expand Down

0 comments on commit 4bb1b9d

Please sign in to comment.