mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-15 17:11:20 +01:00
27 lines
596 B
YAML
27 lines
596 B
YAML
name: Build on local RHEL8
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev/NFS_testing
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "detectors-software-RH8"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build library
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake .. -DSLS_USE_PYTHON=ON -DSLS_USE_TESTS=ON -DSLS_USE_SIMULATOR=ON
|
|
make -j 2
|
|
|
|
- name: Deploy to NFS
|
|
if: gitea.ref == 'refs/heads/dev/NFS_testing'
|
|
run: |
|
|
sftp -r gitea_runner@mpc2935:/slsDetectorSoftware <<< $'put build/bin' |