[llvm] [Github][CI] Add Windows Premerge Job for Testing (PR #122661)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 19 22:22:54 PST 2025
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/122661
>From e58f893e86937829675e74a6db341b31c7b0dbf3 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sun, 19 Jan 2025 22:59:54 +0000
Subject: [PATCH 1/3] [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.
---
.github/workflows/premerge.yaml | 53 +++------------------------------
1 file changed, 4 insertions(+), 49 deletions(-)
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 6c7f1d81a953e1..1b6b10a8b7c3ee 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -12,17 +12,12 @@ on:
- 'main'
jobs:
- premerge-checks-linux:
+ premerge-checks-windows:
if: github.repository_owner == 'llvm'
- runs-on: llvm-premerge-linux-runners
+ runs-on: llvm-premerge-windows-runners
concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+ group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
- container:
- image: ghcr.io/llvm/ci-ubuntu-22.04:latest
- defaults:
- run:
- shell: bash
steps:
- name: Checkout LLVM
uses: actions/checkout at v4
@@ -30,48 +25,8 @@ jobs:
fetch-depth: 2
- name: Setup ccache
uses: hendrikmuhs/ccache-action at v1.2.14
- with:
- max-size: "2000M"
- name: Build and Test
- # Mark the job as a success even if the step fails so that people do
- # not get notified while the new premerge pipeline is in an
- # experimental state.
- # TODO(boomanaiden154): Remove this once the pipeline is stable and we
- # are ready for people to start recieving notifications.
continue-on-error: true
run: |
- git config --global --add safe.directory '*'
-
- modified_files=$(git diff --name-only HEAD~1...HEAD)
- modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
-
- echo $modified_files
- echo $modified_dirs
-
- . ./.ci/compute-projects.sh
-
- all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
- modified_projects="$(keep-modified-projects ${all_projects})"
-
- linux_projects_to_test=$(exclude-linux $(compute-projects-to-test 0 ${modified_projects}))
- linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq)
- linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq)
-
- linux_runtimes_to_test=$(compute-runtimes-to-test ${linux_projects_to_test})
- linux_runtime_check_targets=$(check-targets ${linux_runtimes_to_test} | sort | uniq)
- linux_runtimes=$(echo ${linux_runtimes_to_test} | sort | uniq)
-
- if [[ "${linux_projects}" == "" ]]; then
- echo "No projects to build"
- exit 0
- fi
-
- echo "Building projects: ${linux_projects}"
- echo "Running project checks targets: ${linux_check_targets}"
- echo "Building runtimes: ${linux_runtimes}"
- echo "Running runtimes checks targets: ${linux_runtime_check_targets}"
-
- export CC=/opt/llvm/bin/clang
- export CXX=/opt/llvm/bin/clang++
+ echo test
- ./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"
>From 115825c8052bc08e6523747fcac9f74c7dedc453 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 20 Jan 2025 06:04:30 +0000
Subject: [PATCH 2/3] change shell
---
.github/workflows/premerge.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 1b6b10a8b7c3ee..a353ffeb133eeb 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -18,6 +18,9 @@ jobs:
concurrency:
group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
+ defaults:
+ run:
+ shell: bash
steps:
- name: Checkout LLVM
uses: actions/checkout at v4
>From cdfbb611bb3d92bb8fb9e0f74955d143534f30b3 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 20 Jan 2025 06:22:14 +0000
Subject: [PATCH 3/3] force sccache
---
.github/workflows/premerge.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index a353ffeb133eeb..39bc4837d26353 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -28,6 +28,8 @@ jobs:
fetch-depth: 2
- name: Setup ccache
uses: hendrikmuhs/ccache-action at v1.2.14
+ with:
+ variant: "sccache"
- name: Build and Test
continue-on-error: true
run: |
More information about the llvm-commits
mailing list