-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (29 loc) · 1.08 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: C/C++ CI Docker
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ohhmm/openmind:latest
steps:
- uses: actions/checkout@v3
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv && which clang++) || (echo No dockerenv)
- name: Create Build Dir
run: cmake -E make_directory ./build
- name: Configure
working-directory: ./build
run: cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=/usr/lib/llvm/17/bin/clang-17 -DCMAKE_C_COMPILER=/usr/lib/llvm/17/bin/clang-17 \
-DOPENMIND_BUILD_SAMPLES=OFF
# - name: Install prerequisites
# working-directory: ./build
# run: cmake --build . --target prerequisites -j `nproc`
# - name: Reconfigure to detect newly installed prerequisites
# working-directory: ./build
# run: cmake .
- name: Build
run: cmake --build build
- name: Check
working-directory: ./build
run: ctest . -j`nproc` -E ts --rerun-failed --output-on-failure