Skip to content

Commit ba03f9c

Browse files
committed
ci : try to fix macOS
1 parent f2e8616 commit ba03f9c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ jobs:
143143
cd build
144144
ctest --verbose
145145
146+
# TODO: build with LLAMA_NO_METAL because test-backend-ops fail on "Apple Paravirtual device" and I don't know
147+
# how to debug it.
148+
# ref: https://github.com/ggerganov/llama.cpp/actions/runs/7131777249/job/19420981052#step:5:1124
146149
macOS-latest-make:
147150
runs-on: macos-latest
148151

@@ -160,13 +163,13 @@ jobs:
160163
- name: Build
161164
id: make_build
162165
run: |
163-
make -j $(sysctl -n hw.logicalcpu)
166+
LLAMA_NO_METAL=1 make -j $(sysctl -n hw.logicalcpu)
164167
165168
- name: Test
166169
id: make_test
167170
run: |
168-
make tests -j $(sysctl -n hw.logicalcpu)
169-
make test -j $(sysctl -n hw.logicalcpu)
171+
LLAMA_NO_METAL=1 make tests -j $(sysctl -n hw.logicalcpu)
172+
LLAMA_NO_METAL=1 make test -j $(sysctl -n hw.logicalcpu)
170173
171174
macOS-latest-cmake:
172175
runs-on: macos-latest

0 commit comments

Comments
 (0)