diff --git a/.github/workflows/gpu.yml b/.github/workflows/gpu.yml index c92f159..6a95c9b 100644 --- a/.github/workflows/gpu.yml +++ b/.github/workflows/gpu.yml @@ -1,12 +1,10 @@ name: GPU on: + push: + branches: [canon] pull_request: types: [labeled] - workflow_run: - workflows: [CI] - types: [completed] - branches: [canon] permissions: contents: read @@ -19,11 +17,10 @@ env: jobs: gpu-test: if: >- + github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.label.name == 'gpu-test' && github.actor == github.repository_owner && github.triggering_actor == github.repository_owner && - github.event.pull_request.head.repo.full_name == github.repository) || - (github.event_name == 'workflow_run' && github.event.workflow_run.event == 'push' && - github.event.workflow_run.conclusion == 'success') + github.event.pull_request.head.repo.full_name == github.repository) concurrency: group: gpu-ci cancel-in-progress: false @@ -32,8 +29,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }} - name: Install LLVM ${{ env.LLVM_VERSION }} and MLIR run: |