Skip to content

Commit

Permalink
ci : another try to fix macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 7, 2023
1 parent 5f68586 commit cc06e77
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ jobs:
cd build
ctest --verbose
# TODO: build with LLAMA_NO_METAL because test-backend-ops fail on "Apple Paravirtual device" and I don't know
# how to debug it.
# ref: https://github.com/ggerganov/llama.cpp/actions/runs/7131777249/job/19420981052#step:5:1124
macOS-make:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

steps:
- name: Clone
Expand All @@ -160,16 +163,16 @@ jobs:
- name: Build
id: make_build
run: |
make -j $(sysctl -n hw.logicalcpu)
LLAMA_NO_METAL=1 make -j $(sysctl -n hw.logicalcpu)
- name: Test
id: make_test
run: |
make tests -j $(sysctl -n hw.logicalcpu)
make test -j $(sysctl -n hw.logicalcpu)
LLAMA_NO_METAL=1 make tests -j $(sysctl -n hw.logicalcpu)
LLAMA_NO_METAL=1 make test -j $(sysctl -n hw.logicalcpu)
macOS-cmake:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

steps:
- name: Clone
Expand Down Expand Up @@ -198,7 +201,7 @@ jobs:
ctest --verbose --timeout 900
macOS-cmake-ios:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

steps:
- name: Clone
Expand Down Expand Up @@ -226,7 +229,7 @@ jobs:
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
macOS-cmake-tvos:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

steps:
- name: Clone
Expand Down Expand Up @@ -254,7 +257,7 @@ jobs:
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu)
macOS-swift:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

strategy:
matrix:
Expand Down Expand Up @@ -499,7 +502,7 @@ jobs:
cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
ios-xcode-build:
runs-on: macos-13
runs-on: [macos-13, macos-latest]

steps:
- name: Checkout code
Expand Down

0 comments on commit cc06e77

Please sign in to comment.