Skip to content

Commit 3591461

Browse files
committed
feat(ci): add a test build not using unity build
1 parent 3d91661 commit 3591461

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@ jobs:
9999
-DARK_UNITY_BUILD=On
100100
cmake --build build --config ${{ env.BUILD_TYPE }} -j $(nproc)
101101
102+
no-unity-building:
103+
runs-on: ubuntu-24.04
104+
name: "Build without Unity build"
105+
needs: [ check ]
106+
107+
steps:
108+
- uses: actions/checkout@v5
109+
with:
110+
submodules: recursive
111+
112+
- name: Setup compilers, dependencies, project and build
113+
uses: ./.github/workflows/setup-compilers
114+
with:
115+
os_name: ubuntu-24.04
116+
compiler: clang
117+
compiler_version: 16
118+
sanitizers: "On"
119+
with_deps: true
120+
unity: "Off"
121+
102122
build:
103123
runs-on: ${{ matrix.config.os }}
104124
name: ${{ matrix.config.name }}

.github/workflows/setup-compilers/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ inputs:
2020
with_deps:
2121
description: 'Download and configure dependencies or not (false|true)'
2222
default: 'false'
23+
unity:
24+
default: 'On'
2325

2426
runs:
2527
using: "composite"
@@ -103,7 +105,7 @@ runs:
103105
-DARK_BUILD_EXE=On \
104106
-DARK_BUILD_MODULES=$ToggleModules -DARK_MOD_ALL=$ToggleModules -DARK_MOD_DRAFT=$ToggleModules \
105107
-DARK_TESTS=On \
106-
-DARK_UNITY_BUILD=On
108+
-DARK_UNITY_BUILD=${{ inputs.unity }}
107109
cmake --build build --config $BUILD_TYPE -j $(nproc)
108110
109111
- name: Configure CMake Ark

0 commit comments

Comments
 (0)