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
78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
name: Linux Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- ci/**
|
|
- main
|
|
- dev
|
|
- release-0.2
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- release-0.2
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Linux ${{ matrix.backend }}
|
|
runs-on: ubuntu-24.04
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- backend: cpu
|
|
enable_vulkan: "OFF"
|
|
cc: gcc-13
|
|
cxx: g++-13
|
|
- backend: vulkan
|
|
enable_vulkan: "ON"
|
|
cc: gcc-13
|
|
cxx: g++-13
|
|
- backend: cpu-clang
|
|
enable_vulkan: "OFF"
|
|
cc: clang-18
|
|
cxx: clang++-18
|
|
|
|
env:
|
|
CC: ${{ matrix.cc }}
|
|
CXX: ${{ matrix.cxx }}
|
|
BUILD_DIR: build/ci-linux-${{ matrix.backend }}
|
|
|
|
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: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y gcc-13 g++-13 cmake make glslc libvulkan-dev spirv-headers
|
|
|
|
- name: Install Clang
|
|
if: matrix.backend == 'cpu-clang'
|
|
run: sudo apt-get install -y clang-18 libomp-18-dev
|
|
|
|
- name: Configure
|
|
run: |
|
|
cmake -S . -B "$BUILD_DIR" \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DAUDIOCPP_VERSION=ci \
|
|
-DENGINE_ENABLE_CUDA=OFF \
|
|
-DENGINE_ENABLE_VULKAN=${{ matrix.enable_vulkan }} \
|
|
-DENGINE_BUILD_TESTS=ON
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake --build "$BUILD_DIR" --parallel "$(nproc)" --target audiocpp_cli audiocpp_server audiocpp_gguf
|
|
|
|
- name: Build and run unit tests
|
|
run: |
|
|
cmake --build "$BUILD_DIR" --parallel "$(nproc)"
|
|
ctest --test-dir "$BUILD_DIR" --output-on-failure --parallel 4
|