|
12 | 12 | - 'main'
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - premerge-checks-linux: |
| 15 | + premerge-checks-windows: |
16 | 16 | if: github.repository_owner == 'llvm'
|
17 |
| - runs-on: llvm-premerge-linux-runners |
| 17 | + runs-on: llvm-premerge-windows-runners |
18 | 18 | concurrency:
|
19 |
| - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 19 | + group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }} |
20 | 20 | cancel-in-progress: true
|
21 |
| - container: |
22 |
| - image: ghcr.io/llvm/ci-ubuntu-22.04:latest |
23 |
| - defaults: |
24 |
| - run: |
25 |
| - shell: bash |
26 | 21 | steps:
|
27 | 22 | - name: Checkout LLVM
|
28 | 23 | uses: actions/checkout@v4
|
29 | 24 | with:
|
30 | 25 | fetch-depth: 2
|
31 | 26 | - name: Setup ccache
|
32 | 27 | uses: hendrikmuhs/[email protected]
|
33 |
| - with: |
34 |
| - max-size: "2000M" |
35 | 28 | - 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. |
41 | 29 | continue-on-error: true
|
42 | 30 | 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 |
76 | 32 |
|
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