mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-05-29 17:10:40 +02:00

- State before merging the new cluster vector API --------- Co-authored-by: Patrick <patrick.sieberer@psi.ch> Co-authored-by: JulianHeymes <julian.heymes@psi.ch> Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch> Co-authored-by: Xiangyu Xie <45243914+xiangyuxie@users.noreply.github.com> Co-authored-by: xiangyu.xie <xiangyu.xie@psi.ch> Co-authored-by: siebsi <sieb.patr@gmail.com>
36 lines
970 B
YAML
36 lines
970 B
YAML
name: Build on RHEL8
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-latest"
|
|
container:
|
|
image: gitea.psi.ch/images/rhel8-developer-gitea-actions
|
|
steps:
|
|
# workaround until actions/checkout@v4 is available for RH8
|
|
# - uses: actions/checkout@v4
|
|
- name: Clone repository
|
|
run: |
|
|
echo Cloning ${{ github.ref_name }}
|
|
git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git --branch=${{ github.ref_name }} .
|
|
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
dnf install -y cmake python3.12 python3.12-devel python3.12-pip
|
|
|
|
- name: Build library
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake .. -DAARE_PYTHON_BINDINGS=ON -DAARE_TESTS=ON -DPython_FIND_VIRTUALENV=FIRST
|
|
make -j 2
|
|
|
|
- name: C++ unit tests
|
|
working-directory: ${{gitea.workspace}}/build
|
|
run: ctest |