Skip to content

Commit

Permalink
[CI] Change on-push-verification job name to "In-tree build" (#524)
Browse files Browse the repository at this point in the history
Motivation: use the name as check in "Require status checks to pass".
The name should be the same for all branches.
Branch-Protection #516
  • Loading branch information
wenju-he authored May 29, 2024
1 parent ba38f3a commit e4a5d2c
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/on-push-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# to choose correct dependencies revisions
# ===---

name: On push & pull-request verification
name: In-tree build
run-name: '${{ github.event_name }}: ${{ github.base_ref }} ${{ github.ref_name }}' # github.base_ref null for 'on: push'

on:
Expand All @@ -24,29 +24,10 @@ on:

jobs:

verify_default_branch:
name: Verify for `main` branch
# ref_name for 'on: push'
# base_ref for 'on: pull_request'
if: ${{ (github.event_name == 'push' && github.ref_name == 'main') || (github.event_name == 'pull_request' && github.base_ref == 'main') }}
runs-on: ubuntu-22.04
steps:

- name: Checkout opencl-clang sources for action files
uses: actions/checkout@v3

- name: Run build-opencl-clang action
uses: ./.github/actions/build-opencl-clang
with:
ref_llvm: main
ref_translator: main
ref_opencl-clang: ${{ github.ref }}

verify_release_branch:
name: Verify for `ocl-open-*` release branch
name: Linux
# ref_name for 'on: push'
# base_ref for 'on: pull_request'
if: ${{ github.ref_name != 'main' && github.base_ref != 'main' }}
runs-on: ubuntu-22.04
steps:

Expand Down

0 comments on commit e4a5d2c

Please sign in to comment.