Skip to content

Commit 6c5b05c

Browse files
committed
test examples/tests as independent CMake projects
1 parent ad5000a commit 6c5b05c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ jobs:
8585
if: ${{ inputs.debug_enabled }}
8686

8787
- name: Set OCCA install directory
88-
run: echo "OCCA_INSTALL_DIR=${PWD}/install" >> ${GITHUB_ENV}
88+
run: |
89+
echo "OCCA_DIR=${PWD}/install" >> ${GITHUB_ENV}
90+
echo "OCCA_INSTALL_DIR=${PWD}/install" >> ${GITHUB_ENV}
8991
9092
- name: add oneAPI to apt
9193
if: ${{ matrix.useoneAPI }}
@@ -144,6 +146,18 @@ jobs:
144146
run: |
145147
cmake --build build --target install --parallel 16
146148
149+
- name: CMake build examples as an independent project
150+
if: ${{ matrix.useCMake && !matrix.useoneAPI}}
151+
run: |
152+
cd examples
153+
cmake -S . -B build
154+
155+
- name: CMake build tests as an independent project
156+
if: ${{ matrix.useCMake && !matrix.useoneAPI}}
157+
run: |
158+
cd tests
159+
cmake -S . -B build
160+
147161
- name: CMake build and install
148162
if: ${{ matrix.useCMake && matrix.useoneAPI}}
149163
env:

0 commit comments

Comments
 (0)