mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-31 15:10:41 +02:00
26 lines
544 B
YAML
26 lines
544 B
YAML
name: Build on RHEL8
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-latest"
|
|
container:
|
|
image: gitea.psi.ch/detectors/rhel8-detectors-dev
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build library
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake .. -DSLS_USE_PYTHON=ON -DSLS_USE_TESTS=ON -DPython_FIND_VIRTUALENV=FIRST
|
|
make -j 2
|
|
|
|
- name: C++ unit tests
|
|
working-directory: ${{gitea.workspace}}/build
|
|
run: ctest |