Skip to content

[CI] Switch windows pre-commit pull_request_target -> pull_request #10767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions .github/workflows/sycl_precommit_windows.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: SYCL Pre Commit on Windows

on:
pull_request_target:
pull_request:
branches:
- sycl
- sycl-devops-pr/**
Expand All @@ -15,9 +15,6 @@ on:
- 'clang/docs/**'
- '**.md'
- '**.rst'
# For CI-related files we explicitly skip all the jobs below even if there
# were other (non-ignored) files modified in this PR.
- 'devops/*/**'

permissions:
contents: read
Expand All @@ -27,10 +24,6 @@ jobs:
uses: ./.github/workflows/sycl_detect_changes.yml

lint:
needs: [detect_changes]
if: |
github.event.pull_request.head.repo.full_name == 'intel/llvm' ||
!contains(needs.detect_changes.outputs.filters, 'ci')
runs-on: [Linux, build]
container:
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:no-drivers
Expand Down Expand Up @@ -61,10 +54,6 @@ jobs:

# This job generates matrix of tests for SYCL End-to-End tests
test_matrix:
needs: [detect_changes]
if: |
github.event.pull_request.head.repo.full_name == 'intel/llvm' ||
!contains(needs.detect_changes.outputs.filters, 'ci')
name: Generate Test Matrix
uses: ./.github/workflows/sycl_gen_test_matrix.yml
with:
Expand All @@ -78,10 +67,8 @@ jobs:
always()
&& (success() || contains(github.event.pull_request.labels.*.name, 'ignore-lint'))
&& github.repository == 'intel/llvm'
&& (github.event.pull_request.head.repo.full_name == 'intel/llvm'
|| !contains(needs.detect_changes.outputs.filters, 'ci'))
uses: ./.github/workflows/sycl_windows_build_and_test.yml
with:
lts_matrix: ${{ needs.test_matrix.outputs.lts_wn_matrix }}
build_ref: ${{ github.event.pull_request.head.sha }}
build_ref: ${{ github.sha }}
changes: ${{ needs.detect_changes.outputs.filters }}