diff --git a/.gitea/workflows/rh8-local.yml b/.gitea/workflows/rh8-local.yml new file mode 100644 index 000000000..a99dd2b3b --- /dev/null +++ b/.gitea/workflows/rh8-local.yml @@ -0,0 +1,27 @@ +name: Build on local RHEL8 + +on: + push: + branches: + - developer + 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 update server + 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 new file mode 100644 index 000000000..62a27b32c --- /dev/null +++ b/.gitea/workflows/rh9-local.yml @@ -0,0 +1,27 @@ +name: Build 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_TESTS=ON -DSLS_USE_SIMULATOR=ON + make -j 2 + + - name: Deploy to NFS update server + if: gitea.ref == 'refs/heads/developer' + run: | + sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH9 <<< $'put build/bin' \ No newline at end of file