-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci/nitro-node): simplify workflows for nitro-node
- Loading branch information
1 parent
7190ab2
commit 238ba0b
Showing
3 changed files
with
32 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,189 +13,24 @@ on: | |
paths: [".github/workflows/build-nitro-node.yml", "nitro-node"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ubuntu-amd64-non-cuda-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
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 | ||
WHISPER_MODEL_URL: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny-q5_1.bin | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Restore cached model file | ||
id: cache-model-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
nitro-node/test/test_assets/*.gguf | ||
key: ${{ runner.os }}-model-gguf | ||
|
||
- uses: suisei-cn/[email protected] | ||
id: download-model-file | ||
name: Download model file | ||
with: | ||
url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
target: nitro-node/test/test_assets/ | ||
auto-match: true | ||
retry-times: 3 | ||
|
||
- name: Save downloaded model file to cache | ||
id: cache-model-save | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
nitro-node/test/test_assets/*.gguf | ||
key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
- name: Run tests | ||
id: test_nitro_node | ||
run: | | ||
cd nitro-node | ||
make clean test-ci | ||
#ubuntu-amd64-build: | ||
# runs-on: ubuntu-18-04-cuda-11-7 | ||
# steps: | ||
# - name: Clone | ||
# id: checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: Restore cached model file | ||
# id: cache-model-restore | ||
# uses: actions/cache/restore@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ runner.os }}-model-gguf | ||
|
||
# - uses: suisei-cn/[email protected] | ||
# id: download-model-file | ||
# name: Download model file | ||
# with: | ||
# url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
# target: nitro-node/test/test_assets/ | ||
# auto-match: true | ||
# retry-times: 3 | ||
|
||
# - name: Save downloaded model file to cache | ||
# id: cache-model-save | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
# - name: Run tests | ||
# id: test_nitro_node | ||
# run: | | ||
# cd nitro-node | ||
# make clean test-ci | ||
|
||
#ubuntu-amd64-cuda-build: | ||
# runs-on: ubuntu-18-04-cuda-${{ matrix.cuda }} | ||
# strategy: | ||
# matrix: | ||
# cuda: ["12-0", "11-7"] | ||
|
||
# steps: | ||
# - name: Clone | ||
# id: checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: Restore cached model file | ||
# id: cache-model-restore | ||
# uses: actions/cache/restore@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ runner.os }}-model-gguf | ||
|
||
# - uses: suisei-cn/[email protected] | ||
# id: download-model-file | ||
# name: Download model file | ||
# with: | ||
# url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
# target: nitro-node/test/test_assets/ | ||
# auto-match: true | ||
# retry-times: 3 | ||
|
||
# - name: Save downloaded model file to cache | ||
# id: cache-model-save | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
# - name: Run tests | ||
# id: test_nitro_node | ||
# run: | | ||
# cd nitro-node | ||
# make clean test-ci | ||
|
||
macOS-M-build: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Restore cached model file | ||
id: cache-model-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
nitro-node/test/test_assets/*.gguf | ||
key: ${{ runner.os }}-model-gguf | ||
|
||
- uses: suisei-cn/[email protected] | ||
id: download-model-file | ||
name: Download model file | ||
with: | ||
url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
target: nitro-node/test/test_assets/ | ||
auto-match: true | ||
retry-times: 3 | ||
|
||
- name: Save downloaded model file to cache | ||
id: cache-model-save | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
nitro-node/test/test_assets/*.gguf | ||
key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
- name: Run tests | ||
id: test_nitro_node | ||
run: | | ||
cd nitro-node | ||
make clean test-ci | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-18-04-cuda-12-0 | ||
- ubuntu-18-04-cuda-11-7 | ||
- macos-silicon | ||
- macos-latest | ||
- windows-latest | ||
- windows-cuda-12-0 | ||
- windows-cuda-11-7 | ||
|
||
macOS-Intel-build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Clone | ||
id: checkout | ||
|
@@ -219,7 +54,7 @@ jobs: | |
id: download-model-file | ||
name: Download model file | ||
with: | ||
url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
url: ${{ env.LLM_MODEL_URL }} | ||
target: nitro-node/test/test_assets/ | ||
auto-match: true | ||
retry-times: 3 | ||
|
@@ -237,119 +72,3 @@ jobs: | |
run: | | ||
cd nitro-node | ||
make clean test-ci | ||
#windows-amd64-build: | ||
# runs-on: windows-latest | ||
# steps: | ||
# - name: Clone | ||
|
||
# id: checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: Setup VSWhere.exe | ||
# uses: warrenbuckley/Setup-VSWhere@v1 | ||
# with: | ||
# version: latest | ||
# silent: true | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
# - name: Restore cached model file | ||
# id: cache-model-restore | ||
# uses: actions/cache/restore@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ runner.os }}-model-gguf | ||
|
||
# - uses: suisei-cn/[email protected] | ||
# id: download-model-file | ||
# name: Download model file | ||
# with: | ||
# url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
# target: nitro-node/test/test_assets/ | ||
# auto-match: true | ||
# retry-times: 3 | ||
|
||
# - name: Save downloaded model file to cache | ||
# id: cache-model-save | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
# - name: Run tests | ||
# id: test_nitro_node | ||
# run: | | ||
# cd nitro-node | ||
# make clean test-ci | ||
|
||
#windows-amd64-cuda-build: | ||
# runs-on: windows-cuda-${{ matrix.cuda }} | ||
# strategy: | ||
# matrix: | ||
# cuda: ["12-0", "11-7"] | ||
|
||
# steps: | ||
# - name: Clone | ||
# id: checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
|
||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: actions-setup-cmake | ||
# uses: jwlawson/[email protected] | ||
|
||
# - name: Setup VSWhere.exe | ||
# uses: warrenbuckley/Setup-VSWhere@v1 | ||
# with: | ||
# version: latest | ||
# silent: true | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
# - uses: actions/setup-dotnet@v3 | ||
# with: | ||
# dotnet-version: "6.0.x" | ||
|
||
# - name: Restore cached model file | ||
# id: cache-model-restore | ||
# uses: actions/cache/restore@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ runner.os }}-model-gguf | ||
|
||
# - uses: suisei-cn/[email protected] | ||
# id: download-model-file | ||
# name: Download model file | ||
# with: | ||
# url: "The model we are using is [tinyllama-1.1b](https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf)!" | ||
# target: nitro-node/test/test_assets/ | ||
# auto-match: true | ||
# retry-times: 3 | ||
|
||
# - name: Save downloaded model file to cache | ||
# id: cache-model-save | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: | | ||
# nitro-node/test/test_assets/*.gguf | ||
# key: ${{ steps.cache-model-restore.outputs.cache-primary-key }} | ||
|
||
# - name: Run tests | ||
# id: test_nitro_node | ||
# run: | | ||
# cd nitro-node | ||
# make clean test-ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.