[llvm] [libc][workflow] improve ci coverage with windows-2024 and arm ubuntu (PR #123745)
Schrodinger ZHU Yifan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 04:42:26 PST 2025
https://github.com/SchrodingerZhu updated https://github.com/llvm/llvm-project/pull/123745
>From 6ef0df0d884a6fa5a38aac92a845cd6542f7ba96 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Tue, 21 Jan 2025 12:33:14 +0000
Subject: [PATCH 1/2] [libc][workflow] improve ci coverage with windows-2024
and arm ubuntu
---
.github/workflows/libc-fullbuild-tests.yml | 8 ++++++--
.github/workflows/libc-overlay-tests.yml | 8 ++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 58e15ce29546ef..1db69665ae186d 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -11,12 +11,16 @@ on:
jobs:
build:
- runs-on: ubuntu-24.04
+ runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- - c_compiler: clang
+ - os: ubuntu-24.04
+ c_compiler: clang
+ cpp_compiler: clang++
+ - os: ubuntu-24.04-arm
+ c_compiler: clang
cpp_compiler: clang++
# TODO: add back gcc build when it is fixed
# - c_compiler: gcc
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index 8b59d76aed4a88..62c99742f7a6cc 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -22,10 +22,18 @@ jobs:
compiler:
c_compiler: clang
cpp_compiler: clang++
+ - os: ubuntu-24.04-arm
+ compiler:
+ c_compiler: clang
+ cpp_compiler: clang++
- os: windows-2022
compiler:
c_compiler: clang-cl
cpp_compiler: clang-cl
+ - os: windows-2025
+ compiler:
+ c_compiler: clang-cl
+ cpp_compiler: clang-cl
- os: macos-14
compiler:
c_compiler: clang
>From 2b2bc84e5284007e25905d58470fc011a6a600c2 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Tue, 21 Jan 2025 12:42:12 +0000
Subject: [PATCH 2/2] skip ccache on arm64
---
.github/workflows/libc-fullbuild-tests.yml | 1 +
.github/workflows/libc-overlay-tests.yml | 1 +
2 files changed, 2 insertions(+)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 1db69665ae186d..85e3c3637ba316 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -36,6 +36,7 @@ jobs:
# frequent small object writes.
- name: Setup ccache
uses: hendrikmuhs/ccache-action at v1.2
+ if: runner.arch == 'X64'
with:
max-size: 1G
key: libc_fullbuild_${{ matrix.c_compiler }}
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index 62c99742f7a6cc..b87bad5bb01539 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -51,6 +51,7 @@ jobs:
# frequent small object writes.
- name: Setup ccache
uses: hendrikmuhs/ccache-action at v1
+ if: runner.arch == 'X64'
with:
max-size: 1G
key: libc_overlay_build_${{ matrix.os }}_${{ matrix.compiler.c_compiler }}
More information about the llvm-commits
mailing list