diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml new file mode 100644 index 0000000..049e300 --- /dev/null +++ b/.github/workflows/cpp.yml @@ -0,0 +1,18 @@ +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: | + mkdir -p build && cd build && \ + cmake -DCMAKE_INSTALL_PREFIX=/odin -DODINDATA_ROOT_DIR=/odin ../cpp && \ + make -j8 VERBOSE=1 && \ + make install