[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:57:34 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 d26214b353f5a00fbb7c75cd61a4a3a0d25b8aad 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 | 7 +++++++
.github/workflows/libc-overlay-tests.yml | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 1db69665ae186d..9cb1dd32b1e2a8 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 }}
@@ -46,10 +47,16 @@ jobs:
# - Debian has a multilib setup, so we need to symlink the asm directory.
# For more information, see https://wiki.debian.org/Multiarch/LibraryPathOverview
- name: Prepare dependencies (Ubuntu)
+ shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build linux-libc-dev
sudo ln -sf /usr/include/$(uname -p)-linux-gnu/asm /usr/include/asm
+ if [[ $(uname -m) == 'aarch64' ]]; then
+ wget https://github.com/mozilla/sccache/releases/download/v0.9.1/sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
+ tar xvaf sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
+ sudo cp sccache-v0.9.1-aarch64-unknown-linux-musl/sccache /usr/bin
+ fi
- name: Set reusable strings
id: strings
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index 62c99742f7a6cc..1fc77860a3cfe4 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 }}
@@ -62,6 +63,11 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build
+ if [[ $(uname -m) == 'aarch64' ]]; then
+ wget https://github.com/mozilla/sccache/releases/download/v0.9.1/sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
+ tar xvaf sccache-v0.9.1-aarch64-unknown-linux-musl.tar.gz
+ sudo cp sccache-v0.9.1-aarch64-unknown-linux-musl/sccache /usr/bin
+ fi
# Chocolatey is shipped with Windows runners. Windows Server 2025 recommends WinGet.
# Consider migrating to WinGet when Windows Server 2025 is available.
More information about the llvm-commits
mailing list