From 613df401619e63241f9f8075f20f6f26717e9253 Mon Sep 17 00:00:00 2001 From: Gary Yendell Date: Fri, 27 Sep 2024 16:18:36 +0000 Subject: [PATCH] Add CI to test build in odin-data container --- .github/workflows/cpp.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cpp.yml diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml new file mode 100644 index 0000000..c49eebd --- /dev/null +++ b/.github/workflows/cpp.yml @@ -0,0 +1,19 @@ +name: C++ CI +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + container: ghcr.io/odin-detector/odin-data-build:latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Build eiger-detector + run: | + git config --global --add safe.directory . && \ + mkdir -p build && cd build && \ + cmake -DCMAKE_INSTALL_PREFIX=/odin -DODINDATA_ROOT_DIR=/odin ../cpp && \ + make -j8 VERBOSE=1 && \ + make install