From 5a07cd3d0943fa84762386fcc35d6feeb1662b92 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 12 Feb 2022 20:07:48 -0700 Subject: [PATCH] gpu-dawn: CI: prevent infinite loop of build -> release -> build -> release Signed-off-by: Stephen Gutekanst --- gpu-dawn/.github/workflows/ci.yml | 3 +++ gpu-dawn/.github/workflows/m1_ci.yml | 1 + gpu-dawn/.github/workflows/publish_release.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/gpu-dawn/.github/workflows/ci.yml b/gpu-dawn/.github/workflows/ci.yml index ec68c071..1c3b6781 100644 --- a/gpu-dawn/.github/workflows/ci.yml +++ b/gpu-dawn/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: jobs: # TODO(build-system): enable x86 Linux CI here, dependency cycle in build.zig # x86_64-linux: + # if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} # runs-on: ubuntu-latest # # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # # to the branch. @@ -40,6 +41,7 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # TODO(build-system): enable windows CI here once gpu-dawn builds under Windows # x86_64-windows: + # if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} # runs-on: windows-latest # # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # # to the branch. @@ -59,6 +61,7 @@ jobs: # run: zig build install -Dfrom-source=true # # TODO: upload step for Windows x86_64-macos: + if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} runs-on: macos-latest # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # to the branch. diff --git a/gpu-dawn/.github/workflows/m1_ci.yml b/gpu-dawn/.github/workflows/m1_ci.yml index 39fc54ef..b2bcc8e9 100644 --- a/gpu-dawn/.github/workflows/m1_ci.yml +++ b/gpu-dawn/.github/workflows/m1_ci.yml @@ -6,6 +6,7 @@ on: - completed jobs: aarch64-macos: + if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} runs-on: [self-hosted, macOS, ARM64] defaults: run: diff --git a/gpu-dawn/.github/workflows/publish_release.yml b/gpu-dawn/.github/workflows/publish_release.yml index b862c248..21906549 100644 --- a/gpu-dawn/.github/workflows/publish_release.yml +++ b/gpu-dawn/.github/workflows/publish_release.yml @@ -6,6 +6,7 @@ on: - completed jobs: publish: + if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} runs-on: ubuntu-latest steps: - name: Checkout