[Github][libc] Use a container for fullbuild tests#181436
Merged
boomanaiden154 merged 9 commits intollvm:mainfrom Feb 15, 2026
Merged
[Github][libc] Use a container for fullbuild tests#181436boomanaiden154 merged 9 commits intollvm:mainfrom
boomanaiden154 merged 9 commits intollvm:mainfrom
Conversation
This avoids needing to set up deps every time and avoids failures due to failed dependency installation.
5561028 to
74f98fd
Compare
Member
|
@llvm/pr-subscribers-github-workflow Author: Aiden Grossman (boomanaiden154) ChangesThis avoids needing to set up deps every time and avoids failures due to failed dependency installation. Closed #150490. Full diff: https://github.com/llvm/llvm-project/pull/181436.diff 1 Files Affected:
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index d9445a6407ccf..c796196b2180f 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -12,6 +12,13 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
+ container:
+ image: ${{ (startsWith(matrix.os, 'ubuntu-24.04-arm') && 'ghcr.io/llvm/arm64v8/libc-ubuntu-24.04') || 'ghcr.io/llvm/libc-ubuntu-24.04'}}
+ # We need to enable privileged containers so that certain libc tests
+ # have the necessary permissions (like SYS_TIME). There are no security
+ # implications as we are already running in an isolated VM.
+ options: >-
+ --privileged
strategy:
fail-fast: false
matrix:
@@ -102,26 +109,13 @@ jobs:
max-size: 1G
key: libc_fullbuild_${{ matrix.c_compiler }}
variant: sccache
-
- # Notice:
- # - MPFR is required by some of the mathlib tests.
- # - 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)
- run: |
- wget https://apt.llvm.org/llvm.sh
- chmod +x llvm.sh
- sudo ./llvm.sh 21
- 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
- name: Set reusable strings
id: strings
shell: bash
run: |
- echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- echo "build-install-dir=${{ github.workspace }}/install" >> "$GITHUB_OUTPUT"
+ echo "build-output-dir=/__w/llvm-project/llvm-project/build" >> "$GITHUB_OUTPUT"
+ echo "build-install-dir=/__w/llvm-project/llvm-project/install" >> "$GITHUB_OUTPUT"
# Configure libc fullbuild with scudo.
# Use MinSizeRel to reduce the size of the build.
@@ -131,7 +125,7 @@ jobs:
export CMAKE_FLAGS="
-G Ninja
- -S ${{ github.workspace }}/runtimes
+ -S /__w/llvm-project/llvm-project/runtimes
-B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_ASM_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
@@ -153,7 +147,7 @@ jobs:
case "${{ matrix.target }}" in
*-none-eabi|riscv32-unknown-elf)
cmake $CMAKE_FLAGS \
- -C ${{ github.workspace }}/libc/cmake/caches/${{ matrix.target }}.cmake
+ -C /__w/llvm-project/llvm-project/libc/cmake/caches/${{ matrix.target }}.cmake
;;
*)
cmake -DLLVM_RUNTIME_TARGETS=${{ matrix.target }} \
|
SchrodingerZhu
approved these changes
Feb 15, 2026
manasij7479
pushed a commit
to manasij7479/llvm-project
that referenced
this pull request
Feb 18, 2026
This avoids needing to set up deps every time and avoids failures due to failed dependency installation. Closed llvm#150490.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This avoids needing to set up deps every time and avoids failures due to failed dependency installation.
Closed #150490.