Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 0516440

Browse files
committed
chore(nitro-node/ci): enable CI build on MacOS M1
1 parent 7c75c7b commit 0516440

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

.github/workflows/build-nitro-node.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -150,49 +150,49 @@ jobs:
150150
# cd nitro-node
151151
# make clean test-ci
152152

153-
#macOS-M-build:
154-
# runs-on: mac-silicon
155-
# steps:
156-
# - name: Clone
157-
# id: checkout
158-
# uses: actions/checkout@v4
159-
# with:
160-
# submodules: recursive
153+
macOS-M-build:
154+
runs-on: macos-14
155+
steps:
156+
- name: Clone
157+
id: checkout
158+
uses: actions/checkout@v4
159+
with:
160+
submodules: recursive
161161

162-
# - uses: actions/setup-node@v4
163-
# with:
164-
# node-version: 18
162+
- uses: actions/setup-node@v4
163+
with:
164+
node-version: 18
165165

166-
# - name: Restore cached model file
167-
# id: cache-model-restore
168-
# uses: actions/cache/restore@v4
169-
# with:
170-
# path: |
171-
# nitro-node/test/test_assets/*.gguf
172-
# key: ${{ runner.os }}-model-gguf
166+
- name: Restore cached model file
167+
id: cache-model-restore
168+
uses: actions/cache/restore@v4
169+
with:
170+
path: |
171+
nitro-node/test/test_assets/*.gguf
172+
key: ${{ runner.os }}-model-gguf
173173

174-
# - uses: suisei-cn/actions-download-file@v1.4.0
175-
# id: download-model-file
176-
# name: Download model file
177-
# with:
178-
# 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)!"
179-
# target: nitro-node/test/test_assets/
180-
# auto-match: true
181-
# retry-times: 3
174+
- uses: suisei-cn/actions-download-file@v1.4.0
175+
id: download-model-file
176+
name: Download model file
177+
with:
178+
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)!"
179+
target: nitro-node/test/test_assets/
180+
auto-match: true
181+
retry-times: 3
182182

183-
# - name: Save downloaded model file to cache
184-
# id: cache-model-save
185-
# uses: actions/cache/save@v4
186-
# with:
187-
# path: |
188-
# nitro-node/test/test_assets/*.gguf
189-
# key: ${{ steps.cache-model-restore.outputs.cache-primary-key }}
183+
- name: Save downloaded model file to cache
184+
id: cache-model-save
185+
uses: actions/cache/save@v4
186+
with:
187+
path: |
188+
nitro-node/test/test_assets/*.gguf
189+
key: ${{ steps.cache-model-restore.outputs.cache-primary-key }}
190190

191-
# - name: Run tests
192-
# id: test_nitro_node
193-
# run: |
194-
# cd nitro-node
195-
# make clean test-ci
191+
- name: Run tests
192+
id: test_nitro_node
193+
run: |
194+
cd nitro-node
195+
make clean test-ci
196196
197197
macOS-Intel-build:
198198
runs-on: macos-latest

0 commit comments

Comments
 (0)