Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: mac-build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- ci/**
|
|
- main
|
|
- dev
|
|
- release-0.2
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- release-0.2
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: macOS CPU
|
|
runs-on: macos-26
|
|
|
|
env:
|
|
BUILD_DIR: build/ci-macos-cpu
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check loader/spec sync
|
|
run: |
|
|
python3 tools/check_loader_catalog_sync.py --self-test
|
|
python3 tools/check_loader_catalog_sync.py
|
|
|
|
- name: Check build helper scripts
|
|
run: ./scripts/check_build_scripts.sh
|
|
|
|
- name: Configure
|
|
run: |
|
|
cmake -S . -B "$BUILD_DIR" \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DAUDIOCPP_VERSION=ci \
|
|
-DENGINE_ENABLE_CUDA=OFF \
|
|
-DENGINE_ENABLE_VULKAN=OFF \
|
|
-DENGINE_ENABLE_METAL=OFF \
|
|
-DENGINE_ENABLE_OPENMP=OFF \
|
|
-DGGML_OPENMP=OFF \
|
|
-DENGINE_BUILD_TESTS=ON
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake --build "$BUILD_DIR" \
|
|
--parallel "$(sysctl -n hw.logicalcpu)" \
|
|
--target audiocpp_cli audiocpp_server audiocpp_gguf
|
|
|
|
- name: Build and run unit tests
|
|
run: |
|
|
cmake --build "$BUILD_DIR" --parallel "$(sysctl -n hw.logicalcpu)"
|
|
ctest --test-dir "$BUILD_DIR" --output-on-failure --parallel 4
|