From afc51c97712fa37a915cb2cdcce24186230be147 Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Tue, 25 Nov 2025 16:14:33 +0100 Subject: [PATCH 1/5] testing NFS deploy --- .gitea/workflows/rh8-local.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/rh8-local.yml diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml new file mode 100644 index 000000000..67a5b4e6a --- /dev/null +++ b/.gitea/workflows/rh8-local.yml @@ -0,0 +1,27 @@ +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' \ No newline at end of file From 3ff199822d8998fa5e371839448ba82dc43b05b8 Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Tue, 25 Nov 2025 16:37:42 +0100 Subject: [PATCH 2/5] change path to RH8 --- .gitea/workflows/rh8-local.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml index 67a5b4e6a..1dd5fccf8 100644 --- a/.gitea/workflows/rh8-local.yml +++ b/.gitea/workflows/rh8-local.yml @@ -21,7 +21,7 @@ jobs: cmake .. -DSLS_USE_PYTHON=ON -DSLS_USE_TESTS=ON -DSLS_USE_SIMULATOR=ON make -j 2 - - name: Deploy to NFS + - name: Deploy to NFS update server if: gitea.ref == 'refs/heads/dev/NFS_testing' run: | - sftp -r gitea_runner@mpc2935:/slsDetectorSoftware <<< $'put build/bin' \ No newline at end of file + sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put build/bin' \ No newline at end of file From 3285221e8af879ca14a9acbc56b8ec1e6ba42d0d Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Tue, 25 Nov 2025 17:56:20 +0100 Subject: [PATCH 3/5] added RH9 workflow --- .gitea/workflows/rh9-local.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/rh9-local.yml diff --git a/.gitea/workflows/rh9-local.yml b/.gitea/workflows/rh9-local.yml new file mode 100644 index 000000000..c7e437a49 --- /dev/null +++ b/.gitea/workflows/rh9-local.yml @@ -0,0 +1,27 @@ +name: Build on local RHEL9 + +on: + push: + branches: + - dev/NFS_testing + 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_TESTS=ON -DSLS_USE_SIMULATOR=ON + make -j 2 + + - name: Deploy to NFS update server + if: gitea.ref == 'refs/heads/dev/NFS_testing' + run: | + sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put build/bin' \ No newline at end of file From eea4dca449cb6a67e40addc814899e2dacb22301 Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Wed, 26 Nov 2025 09:11:55 +0100 Subject: [PATCH 4/5] remove branch restrictions --- .gitea/workflows/rh8-local.yml | 4 +--- .gitea/workflows/rh9-local.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml index 1dd5fccf8..3f6fd5a07 100644 --- a/.gitea/workflows/rh8-local.yml +++ b/.gitea/workflows/rh8-local.yml @@ -2,8 +2,6 @@ name: Build on local RHEL8 on: push: - branches: - - dev/NFS_testing workflow_dispatch: permissions: @@ -22,6 +20,6 @@ jobs: make -j 2 - name: Deploy to NFS update server - if: gitea.ref == 'refs/heads/dev/NFS_testing' + if: gitea.ref == 'refs/heads/developer' run: | sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put build/bin' \ No newline at end of file diff --git a/.gitea/workflows/rh9-local.yml b/.gitea/workflows/rh9-local.yml index c7e437a49..cc50cafb9 100644 --- a/.gitea/workflows/rh9-local.yml +++ b/.gitea/workflows/rh9-local.yml @@ -2,8 +2,6 @@ name: Build on local RHEL9 on: push: - branches: - - dev/NFS_testing workflow_dispatch: permissions: @@ -22,6 +20,6 @@ jobs: make -j 2 - name: Deploy to NFS update server - if: gitea.ref == 'refs/heads/dev/NFS_testing' + if: gitea.ref == 'refs/heads/developer' run: | sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put build/bin' \ No newline at end of file From 0da80cd8983246dbbb8423216c422760f2f88b73 Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Thu, 27 Nov 2025 10:43:51 +0100 Subject: [PATCH 5/5] local runners only for developer --- .gitea/workflows/rh8-local.yml | 2 ++ .gitea/workflows/rh9-local.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml index 3f6fd5a07..a99dd2b3b 100644 --- a/.gitea/workflows/rh8-local.yml +++ b/.gitea/workflows/rh8-local.yml @@ -2,6 +2,8 @@ name: Build on local RHEL8 on: push: + branches: + - developer workflow_dispatch: permissions: diff --git a/.gitea/workflows/rh9-local.yml b/.gitea/workflows/rh9-local.yml index cc50cafb9..62a27b32c 100644 --- a/.gitea/workflows/rh9-local.yml +++ b/.gitea/workflows/rh9-local.yml @@ -2,6 +2,8 @@ name: Build on local RHEL9 on: push: + branches: + - developer workflow_dispatch: permissions: