Skip to content

Commit 26e4493

Browse files
[CI] Enable pre-commit testing on Windows (#8980)
This PR (1) enables running Windows Build + LIT + E2E tests during pre-commit testing, (2) Fix windows_test_comment_trigger workflow after #8656
1 parent 88e7c55 commit 26e4493

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: ./.github/workflows/sycl_gen_test_matrix.yml
4949
with:
5050
ref: ${{ github.event.pull_request.head.sha }}
51-
lts_config: "hip_amdgpu;ocl_x64;ocl_gen9;l0_gen9;esimd_emu;cuda_aws"
51+
lts_config: "hip_amdgpu;ocl_x64;ocl_gen9;l0_gen9;esimd_emu;cuda_aws;win_l0_gen12"
5252

5353
linux_default:
5454
name: Linux
@@ -66,3 +66,12 @@ jobs:
6666
build_cache_suffix: "default"
6767
lts_matrix: ${{ needs.test_matrix.outputs.lts_lx_matrix }}
6868
lts_aws_matrix: ${{ needs.test_matrix.outputs.lts_aws_matrix }}
69+
70+
windows_default:
71+
name: Windows
72+
needs: test_matrix
73+
if: github.repository == 'intel/llvm'
74+
uses: ./.github/workflows/sycl_windows_build_and_test.yml
75+
with:
76+
lts_matrix: ${{ needs.test_matrix.outputs.lts_wn_matrix }}
77+
build_ref: ${{ github.event.pull_request.head.sha }}

.github/workflows/windows_test_comment_trigger.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,27 @@ jobs:
4242
outputs:
4343
PR_SHA: ${{ steps.sha.outputs.result }}
4444

45+
test_matrix:
46+
name: Generate Test Matrix
47+
needs: [windows_test_preparation]
48+
if: github.repository == 'intel/llvm'
49+
uses: ./.github/workflows/sycl_gen_test_matrix.yml
50+
with:
51+
lts_config: "win_l0_gen12"
4552

4653
windows_default:
4754
name: Windows
48-
needs: [windows_test_preparation]
55+
needs: [windows_test_preparation, test_matrix]
4956
if: github.repository == 'intel/llvm'
5057
uses: ./.github/workflows/sycl_windows_build_and_test.yml
5158
with:
5259
build_ref: ${{ needs.windows_test_preparation.outputs.PR_SHA }}
60+
lts_matrix: ${{ needs.test_matrix.outputs.lts_wn_matrix }}
5361

5462
windows_test_completion:
5563
runs-on: ubuntu-20.04
5664
needs: [windows_test_preparation, windows_default]
57-
if: always()
65+
if: ${{ always() && needs.windows_test_preparation.result != 'skipped' }}
5866
steps:
5967
- name: update_pr_status_success
6068
if: needs.windows_default.result == 'success'

0 commit comments

Comments
 (0)