diff --git a/.github/workflows/build-android-x86_64.yml b/.github/workflows/build-android-x86_64.yml index 682104766..6acbbd7af 100644 --- a/.github/workflows/build-android-x86_64.yml +++ b/.github/workflows/build-android-x86_64.yml @@ -4,7 +4,19 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} android-x86_64: + needs: pre-ci runs-on: ubuntu-16.04 steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/build-deploy-android-arm32.yml b/.github/workflows/build-deploy-android-arm32.yml index e7a3750d6..1f765d895 100644 --- a/.github/workflows/build-deploy-android-arm32.yml +++ b/.github/workflows/build-deploy-android-arm32.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. android-arm32: + needs: pre-ci runs-on: ubuntu-16.04 steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/build-deploy-android-arm64.yml b/.github/workflows/build-deploy-android-arm64.yml index 0243bfe7d..95fd2b558 100644 --- a/.github/workflows/build-deploy-android-arm64.yml +++ b/.github/workflows/build-deploy-android-arm64.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. android-arm64: + needs: pre-ci runs-on: ubuntu-16.04 steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/build-deploy-linux-arm32.yml b/.github/workflows/build-deploy-linux-arm32.yml index ac4c6aa90..e0c3015b2 100644 --- a/.github/workflows/build-deploy-linux-arm32.yml +++ b/.github/workflows/build-deploy-linux-arm32.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. linux-arm32: + needs: pre-ci runs-on: ubuntu-16.04 steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/build-deploy-linux-arm64.yml b/.github/workflows/build-deploy-linux-arm64.yml index 8c641ba86..f4579eb24 100644 --- a/.github/workflows/build-deploy-linux-arm64.yml +++ b/.github/workflows/build-deploy-linux-arm64.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. linux-arm64: + needs: pre-ci runs-on: ubuntu-16.04 steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/build-deploy-linux-cuda-11.0.yml b/.github/workflows/build-deploy-linux-cuda-11.0.yml index 037beec42..edb670b63 100644 --- a/.github/workflows/build-deploy-linux-cuda-11.0.yml +++ b/.github/workflows/build-deploy-linux-cuda-11.0.yml @@ -4,8 +4,19 @@ on: workflow_dispatch: push: jobs: - + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-x86_64-cuda_11-0: + needs: pre-ci runs-on: ubuntu-16.04 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-linux-cuda-11.2.yml b/.github/workflows/build-deploy-linux-cuda-11.2.yml index 68880363b..3dbcfabdd 100644 --- a/.github/workflows/build-deploy-linux-cuda-11.2.yml +++ b/.github/workflows/build-deploy-linux-cuda-11.2.yml @@ -4,7 +4,19 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-x86_64-cuda-11-2: + needs: pre-ci runs-on: ubuntu-16.04 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-linux-x86_64.yml b/.github/workflows/build-deploy-linux-x86_64.yml index 3ac962599..d0a399b68 100644 --- a/.github/workflows/build-deploy-linux-x86_64.yml +++ b/.github/workflows/build-deploy-linux-x86_64.yml @@ -4,8 +4,20 @@ on: workflow_dispatch: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads. linux-x86_64: + needs: pre-ci runs-on: ubuntu-16.04 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-mac.yml b/.github/workflows/build-deploy-mac.yml index 93bd3898e..866f25713 100644 --- a/.github/workflows/build-deploy-mac.yml +++ b/.github/workflows/build-deploy-mac.yml @@ -3,7 +3,19 @@ on: - cron: "0 */12 * * *" workflow_dispatch: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} mac-x86_64: + needs: pre-ci runs-on: macos-10.15 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-windows-cuda-11.0.yml b/.github/workflows/build-deploy-windows-cuda-11.0.yml index b2f61ed9a..4b847aa4f 100644 --- a/.github/workflows/build-deploy-windows-cuda-11.0.yml +++ b/.github/workflows/build-deploy-windows-cuda-11.0.yml @@ -3,7 +3,19 @@ on: - cron: "0 */12 * * *" workflow_dispatch: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows-x86_64-cuda-11-0: + needs: pre-ci runs-on: windows-2019 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-windows-cuda-11.2.yml b/.github/workflows/build-deploy-windows-cuda-11.2.yml index 8cd435732..8e651d2d1 100644 --- a/.github/workflows/build-deploy-windows-cuda-11.2.yml +++ b/.github/workflows/build-deploy-windows-cuda-11.2.yml @@ -3,7 +3,19 @@ on: - cron: "0 */12 * * *" workflow_dispatch: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows-x86_64-cuda-11-2: + needs: pre-ci runs-on: windows-2019 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/build-deploy-windows.yml b/.github/workflows/build-deploy-windows.yml index 51ad31e7e..5ef668698 100644 --- a/.github/workflows/build-deploy-windows.yml +++ b/.github/workflows/build-deploy-windows.yml @@ -3,8 +3,19 @@ on: - cron: "0 */12 * * *" workflow_dispatch: jobs: - + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows-x86_64: + needs: pre-ci runs-on: windows-2019 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/cpu-integration-tests.yaml b/.github/workflows/cpu-integration-tests.yaml index 8d57fa2e7..edb240dc4 100644 --- a/.github/workflows/cpu-integration-tests.yaml +++ b/.github/workflows/cpu-integration-tests.yaml @@ -1,7 +1,19 @@ on: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-x86_64: + needs: pre-ci runs-on: ubuntu-18.04 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/cpu-sanity-check-tests.yaml b/.github/workflows/cpu-sanity-check-tests.yaml index 0fc3120a9..46dccea75 100644 --- a/.github/workflows/cpu-sanity-check-tests.yaml +++ b/.github/workflows/cpu-sanity-check-tests.yaml @@ -1,7 +1,19 @@ on: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-x86_64: + needs: pre-ci runs-on: ubuntu-18.04 steps: - name: Cancel Previous Runs diff --git a/.github/workflows/run-gpu-tests-sanity-checks.yml b/.github/workflows/run-gpu-tests-sanity-checks.yml index 89335a5e8..0e9e437f5 100644 --- a/.github/workflows/run-gpu-tests-sanity-checks.yml +++ b/.github/workflows/run-gpu-tests-sanity-checks.yml @@ -2,7 +2,19 @@ on: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-x86_64-cuda-11-2: + needs: pre-ci runs-on: [self-hosted] steps: - uses: AutoModality/action-clean@v1 diff --git a/.github/workflows/test_multiple_arch.yaml b/.github/workflows/test_multiple_arch.yaml index 9cc40869c..1323dc971 100644 --- a/.github/workflows/test_multiple_arch.yaml +++ b/.github/workflows/test_multiple_arch.yaml @@ -1,7 +1,19 @@ on: push: jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} build_and_test_cross_platform: + needs: pre-ci # The host should always be linux runs-on: ubuntu-16.04 name: Build on ${{ matrix.distro }} ${{ matrix.arch }}