diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml new file mode 100644 index 0000000..8dd6429 --- /dev/null +++ b/.gitea/workflows/rh8-local.yml @@ -0,0 +1,30 @@ +name: Build on local RHEL8 + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: "detectors-software-RH8" + steps: + - uses: actions/checkout@v4 + + - name: Build library + run: | + source /home/gitea_runner/.bashrc + conda activate det + mkdir build && cd build + conda activate det + cmake .. -DAARE_PYTHON_BINDINGS=ON + make -j 2 + + - name: Deploy to NFS update server + if: gitea.ref == 'refs/heads/developer' + run: | + sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put build' \ No newline at end of file diff --git a/.gitea/workflows/rh9-local.yml b/.gitea/workflows/rh9-local.yml new file mode 100644 index 0000000..c7615e0 --- /dev/null +++ b/.gitea/workflows/rh9-local.yml @@ -0,0 +1,27 @@ +name: Build on local RHEL9 + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: "detectors-software-RH9" + steps: + - uses: actions/checkout@v4 + + - name: Build library + run: | + mkdir build && cd build + cmake -DAARE_PYTHON_BINDINGS=ON -DPython_EXECUTABLE=/usr/bin/python3.13 -DPython_INCLUDE_DIR=/usr/include/python3.13 -DPython_LIBRARY=/usr/lib64/libpython3.13.so .. + make -j 2 + + - name: Deploy to NFS update server + if: gitea.ref == 'refs/heads/developer' + run: | + sftp -r gitea_runner@mpc2935:/aare/RH9 <<< $'put build/aare' \ No newline at end of file