From 3b0f29826b8273fea99d3b594fb8d70a3e91e867 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 28 May 2024 22:54:15 -0700 Subject: [PATCH] [CI] Change on-push-verification job name to "In-tree build" (#522) Motivation: use the name as check in "Require status checks to pass". The name should be the same for all branches. Branch-Protection #516 --- .github/workflows/on-push-verification.yml | 23 ++-------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/on-push-verification.yml b/.github/workflows/on-push-verification.yml index ee0e04d8..600dfb43 100644 --- a/.github/workflows/on-push-verification.yml +++ b/.github/workflows/on-push-verification.yml @@ -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: @@ -24,29 +24,10 @@ on: jobs: - verify_default_branch: - name: Verify for `master` branch - # ref_name for 'on: push' - # base_ref for 'on: pull_request' - if: ${{ (github.event_name == 'push' && github.ref_name == 'master') || (github.event_name == 'pull_request' && github.base_ref == 'master') }} - 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 != 'master' && github.base_ref != 'master' }} runs-on: ubuntu-22.04 steps: