Skip to content

Commit e58f893

Browse files
[Github][CI] Add Windows Premerge Job for Testing
This patch adds a windows premerge job for testing. We plan to enable this by default soon once we have evaluated stability and have reasonably reason to believe the system is reliable.
1 parent 7a7d12b commit e58f893

File tree

1 file changed

+4
-49
lines changed

1 file changed

+4
-49
lines changed

.github/workflows/premerge.yaml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,66 +12,21 @@ on:
1212
- 'main'
1313

1414
jobs:
15-
premerge-checks-linux:
15+
premerge-checks-windows:
1616
if: github.repository_owner == 'llvm'
17-
runs-on: llvm-premerge-linux-runners
17+
runs-on: llvm-premerge-windows-runners
1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }}
2020
cancel-in-progress: true
21-
container:
22-
image: ghcr.io/llvm/ci-ubuntu-22.04:latest
23-
defaults:
24-
run:
25-
shell: bash
2621
steps:
2722
- name: Checkout LLVM
2823
uses: actions/checkout@v4
2924
with:
3025
fetch-depth: 2
3126
- name: Setup ccache
3227
uses: hendrikmuhs/[email protected]
33-
with:
34-
max-size: "2000M"
3528
- name: Build and Test
36-
# Mark the job as a success even if the step fails so that people do
37-
# not get notified while the new premerge pipeline is in an
38-
# experimental state.
39-
# TODO(boomanaiden154): Remove this once the pipeline is stable and we
40-
# are ready for people to start recieving notifications.
4129
continue-on-error: true
4230
run: |
43-
git config --global --add safe.directory '*'
44-
45-
modified_files=$(git diff --name-only HEAD~1...HEAD)
46-
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
47-
48-
echo $modified_files
49-
echo $modified_dirs
50-
51-
. ./.ci/compute-projects.sh
52-
53-
all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
54-
modified_projects="$(keep-modified-projects ${all_projects})"
55-
56-
linux_projects_to_test=$(exclude-linux $(compute-projects-to-test 0 ${modified_projects}))
57-
linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq)
58-
linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq)
59-
60-
linux_runtimes_to_test=$(compute-runtimes-to-test ${linux_projects_to_test})
61-
linux_runtime_check_targets=$(check-targets ${linux_runtimes_to_test} | sort | uniq)
62-
linux_runtimes=$(echo ${linux_runtimes_to_test} | sort | uniq)
63-
64-
if [[ "${linux_projects}" == "" ]]; then
65-
echo "No projects to build"
66-
exit 0
67-
fi
68-
69-
echo "Building projects: ${linux_projects}"
70-
echo "Running project checks targets: ${linux_check_targets}"
71-
echo "Building runtimes: ${linux_runtimes}"
72-
echo "Running runtimes checks targets: ${linux_runtime_check_targets}"
73-
74-
export CC=/opt/llvm/bin/clang
75-
export CXX=/opt/llvm/bin/clang++
31+
echo test
7632
77-
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"

0 commit comments

Comments
 (0)