Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ jobs:
- 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
8 changes: 7 additions & 1 deletion .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ jobs:
-DENGINE_ENABLE_VULKAN=OFF \
-DENGINE_ENABLE_METAL=OFF \
-DENGINE_ENABLE_OPENMP=OFF \
-DGGML_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
12 changes: 12 additions & 0 deletions scripts/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ param(
[string]$Target = "audiocpp_cli",
[int]$Jobs = 0,
[switch]$ConfigureOnly,
[switch]$RunTests,
[switch]$Clean,
[string]$CudaArchitectures = "auto",
[ValidateSet("", "native", "avx2", "baseline")]
Expand Down Expand Up @@ -460,6 +461,9 @@ function Find-VulkanRoot {
}

$settings = Get-PresetSettings $Preset
if ($RunTests) {
$settings.BuildTests = "ON"
}
$cpuArchSettings = Get-CpuArchSettings $CpuArch
if ($null -ne $cpuArchSettings.Native) {
$settings.Native = $cpuArchSettings.Native
Expand Down Expand Up @@ -632,3 +636,11 @@ if ($Target -ne "") {

Write-Host "Build jobs: $effectiveJobs"
Invoke-Checked $cmake $buildArgs

if ($RunTests) {
# Unit tests live under ENGINE_BUILD_TESTS; flip ON above, build everything
# that the -Target build skipped, then run the registered ctest suite.
Invoke-Checked $cmake @("--build", $buildDir, "-j", $effectiveJobs.ToString())
$ctest = Join-Path (Split-Path $cmake -Parent) "ctest.exe"
Invoke-Checked $ctest @("--test-dir", $buildDir, "--output-on-failure", "-j", $effectiveJobs.ToString())
}
Loading