[llvm] [Github][CI] Upload artifacts directory for premerge workflow (PR #135538)

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 03:54:19 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Aiden Grossman (boomanaiden154)

<details>
<summary>Changes</summary>

The premerge pipeline currently creates an artifacts directory with some
statistics that gets uploaded on the buildkite side for later
inspection. This patch adds support for this on the Github side by using
the upload artifacts action.


---
Full diff: https://github.com/llvm/llvm-project/pull/135538.diff


2 Files Affected:

- (modified) .github/workflows/premerge.yaml (+7) 
- (modified) bolt/CMakeLists.txt (+1) 


``````````diff
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index b7d2c7154762e..51333d9c4c397 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -65,6 +65,13 @@ jobs:
           export CXX=/opt/llvm/bin/clang++
 
           ./.ci/monolithic-linux.sh "${projects_to_build}" "${project_check_targets}" "${runtimes_to_build}" "${runtimes_check_targets}"
+            - name: "Upload artifact"
+      - name: Upload Artifacts
+        uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
+        with:
+          name: Premerge Artifacts
+          path: artifacts/
+          retention-days: 5
 
   premerge-checks-windows:
     name: Windows Premerge Checks (Test Only - Please Ignore Results)
diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt
index f5ffa81227064..b5e202156fc60 100644
--- a/bolt/CMakeLists.txt
+++ b/bolt/CMakeLists.txt
@@ -1,3 +1,4 @@
+# testing
 cmake_minimum_required(VERSION 3.20.0)
 
 set(LLVM_SUBPROJECT_TITLE "BOLT")

``````````

</details>


https://github.com/llvm/llvm-project/pull/135538


More information about the llvm-commits mailing list