gpu-dawn: CI: fix infinite build -> release -> build -> release cycle

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-12 22:20:10 -07:00
parent 0edadfacba
commit 4179248811
3 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
# TODO(build-system): enable x86 Linux CI here, dependency cycle in build.zig # TODO(build-system): enable x86 Linux CI here, dependency cycle in build.zig
# x86_64-linux: # x86_64-linux:
# if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# runs-on: ubuntu-latest # 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 # # 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. # # to the branch.
@ -41,7 +41,7 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO(build-system): enable windows CI here once gpu-dawn builds under Windows # TODO(build-system): enable windows CI here once gpu-dawn builds under Windows
# x86_64-windows: # x86_64-windows:
# if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# runs-on: windows-latest # 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 # # 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. # # to the branch.
@ -61,7 +61,7 @@ jobs:
# run: zig build install -Dfrom-source=true # run: zig build install -Dfrom-source=true
# # TODO: upload step for Windows # # TODO: upload step for Windows
x86_64-macos: x86_64-macos:
if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: macos-latest 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 # 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. # to the branch.

View file

@ -6,7 +6,7 @@ on:
- completed - completed
jobs: jobs:
aarch64-macos: aarch64-macos:
if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: [self-hosted, macOS, ARM64] runs-on: [self-hosted, macOS, ARM64]
defaults: defaults:
run: run:

View file

@ -6,7 +6,7 @@ on:
- completed - completed
jobs: jobs:
publish: publish:
if: ${{ !contains(github.event.head_commit.message, 'update to latest binary release') }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout