diff --git a/.github/workflows/cmake.yaml b/.github/workflows/cmake.yaml index d1e3503a8..c32386fb8 100644 --- a/.github/workflows/cmake.yaml +++ b/.github/workflows/cmake.yaml @@ -1,7 +1,7 @@ name: Native CMake Build -on: [push, pull_request] - +on: [push, workflow_dispatch] + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Debug diff --git a/.github/workflows/rh8-local-tests.yaml b/.github/workflows/rh8-local-tests.yaml index c4eb0aabc..6c5a66bf4 100644 --- a/.github/workflows/rh8-local-tests.yaml +++ b/.github/workflows/rh8-local-tests.yaml @@ -4,6 +4,11 @@ on: pull_request: workflow_dispatch: +# Cancel older runs of this workflow for the same PR/branch when a new push arrives +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Debug diff --git a/.github/workflows/rh8-nfs-deploy.yaml b/.github/workflows/rh8-nfs-deploy.yaml index 3b7ec7b5a..08afc01d3 100644 --- a/.github/workflows/rh8-nfs-deploy.yaml +++ b/.github/workflows/rh8-nfs-deploy.yaml @@ -29,6 +29,6 @@ jobs: - name: Deploy to NFS update server if: github.ref == 'refs/heads/developer' run: | - sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put build/bin' - sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put pyctbgui' - sftp -r gitea_runner@mpc2935:/slsDetectorSoftware/RH8 <<< $'put slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer' \ No newline at end of file + cp -r build/bin /home/github_runner/slsDetectorSoftware/RH8 + cp slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer /home/github_runner/slsDetectorSoftware/RH8 + cp -r pyctbgui /home/github_runner/slsDetectorSoftware/RH8 \ No newline at end of file diff --git a/.github/workflows/rh9-local-tests.yaml b/.github/workflows/rh9-local-tests.yaml index 9671df226..38ff6fea1 100644 --- a/.github/workflows/rh9-local-tests.yaml +++ b/.github/workflows/rh9-local-tests.yaml @@ -4,6 +4,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Debug diff --git a/.github/workflows/rh9-nfs-deploy.yaml b/.github/workflows/rh9-nfs-deploy.yaml index cae4a5056..1be05fa70 100644 --- a/.github/workflows/rh9-nfs-deploy.yaml +++ b/.github/workflows/rh9-nfs-deploy.yaml @@ -18,7 +18,6 @@ jobs: - name: Build library run: | mkdir build && cd build - conda activate det cmake .. -DSLS_USE_PYTHON=ON -DSLS_USE_SIMULATOR=ON -DSLS_USE_GUI=ON make -j 2 cd ../pyctbgui