Files
slsDetectorPackage/.github/workflows/rh9-nfs-deploy.yaml
mazzol_a 7d5f82e3db dev/Fix/nfs deploy workflows (#1672)
* reset udp streaming for all modules

* Revert "reset udp streaming for all modules"

This reverts commit e0d0a13def.

* fixed nfs upload workflows

* only build on push

* execute workflows on push for testing

* temporarily disable local tests

* forgot to commit

* also upload if not push to developer for testing

* reverted testing mode
2026-11-10 17:22:41 +01:00

29 lines
844 B
YAML

name: Build and Deploy on local RHEL9
on:
push:
branches:
- developer
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 .. -DSLS_USE_PYTHON=ON -DSLS_USE_SIMULATOR=ON -DSLS_USE_GUI=ON
make -j 2
- name: Deploy to NFS update server
if: github.ref == 'refs/heads/developer'
run: |
sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put build/bin'
sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put pyctbgui'
sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer'