Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

169 lines
5.5 KiB
YAML

name: libc Precommit CI - shared tests
permissions:
contents: read
on:
pull_request:
paths:
- 'libc/**'
- '.github/workflows/libc-shared-tests.yml'
jobs:
windows-msvc-shared:
name: libc-shared-test with MSVC on ${{ matrix.arch }}
if: github.repository_owner == 'llvm'
timeout-minutes: 20
strategy:
fail-fast: false # If one arch fails, let the other finish
matrix:
include:
- arch: amd64
os: windows-2022
- arch: amd64_x86
os: windows-2022
- arch: arm64
os: windows-11-arm
runs-on: ${{ matrix.os }}
steps:
- name: Checkout LLVM
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup MSVC Dev Environment
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
arch: ${{ matrix.arch }}
- name: Configure CMake
run: |
cmake -B build -S runtimes -G Ninja `
-DLLVM_ENABLE_RUNTIMES=libc `
-DCMAKE_C_COMPILER=cl `
-DCMAKE_CXX_COMPILER=cl `
-DCMAKE_BUILD_TYPE=Release
- name: Build and Test
run: cmake --build build --target libc-shared-tests
linux-cross-arch-shared:
name: libc-shared-tests on ${{ matrix.arch }}
if: github.repository_owner == 'llvm'
timeout-minutes: 20
runs-on: ubuntu-24.04
container:
image: 'ghcr.io/llvm/libc-ubuntu-24.04:latest@sha256:a902fb53bdad5e4a4bb6c11b6584e717a7b3d6e886f1ea58e11f95e46226249c'
strategy:
fail-fast: false # If one arch fails, let the other finish
matrix:
include:
- arch: aarch64
libc: libc6-dev-arm64-cross
libcpp: libstdc++6-arm64-cross
target_triple: aarch64-linux-gnu
gcc_arch: aarch64-linux-gnu
- arch: riscv64
libc: libc6-dev-riscv64-cross
libcpp: libstdc++6-riscv64-cross
target_triple: riscv64-linux-gnu
gcc_arch: riscv64-linux-gnu
- arch: ppc64le
libc: libc6-dev-ppc64el-cross
libcpp: libstdc++6-ppc64el-cross
target_triple: powerpc64le-linux-gnu
gcc_arch: powerpc64le-linux-gnu
steps:
- name: Checkout LLVM
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Create QEMU wrapper
run: |
mkdir build
cat << 'EOF' > /__w/llvm-project/llvm-project/build/qemu-wrapper.sh
#!/bin/bash
qemu-${{ matrix.arch }}-static -L /usr/${{ matrix.target_triple }} "$@"
EOF
chmod +x /__w/llvm-project/llvm-project/build/qemu-wrapper.sh
- name: Configure CMake - Clang
run: |
cmake -B build/clang -S runtimes -G Ninja \
-DLLVM_ENABLE_RUNTIMES=libc \
-DCMAKE_C_COMPILER=clang-23 \
-DCMAKE_CXX_COMPILER=clang++-23 \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_USE_LINKER=lld-23 \
-DLIBC_TARGET_TRIPLE=${{ matrix.target_triple }} \
-DCMAKE_CROSSCOMPILING_EMULATOR=/__w/llvm-project/llvm-project/build/qemu-wrapper.sh
- name: Build and Run - Clang
env:
QEMU_LD_PREFIX: /usr/${{ matrix.target_triple }}
run: |
cmake --build build/clang --target libc-shared-tests
- name: Configure CMake - gcc
run: |
cmake -B build/gcc -S runtimes -G Ninja \
-DLLVM_ENABLE_RUNTIMES=libc \
-DCMAKE_C_COMPILER=${{ matrix.target_triple }}-gcc \
-DCMAKE_CXX_COMPILER=${{ matrix.target_triple }}-g++ \
-DCMAKE_BUILD_TYPE=Release \
-DLIBC_TARGET_TRIPLE=${{ matrix.target_triple }} \
-DCMAKE_CROSSCOMPILING_EMULATOR=/__w/llvm-project/llvm-project/build/qemu-wrapper.sh
- name: Build and Run - gcc
env:
QEMU_LD_PREFIX: /usr/${{ matrix.target_triple }}
run: |
cmake --build build/gcc --target libc-shared-tests
linux-gcc-shared:
name: libc-shared-tests with ${{ matrix.name }}
if: github.repository_owner == 'llvm'
timeout-minutes: 20
runs-on: ubuntu-24.04
container:
image: 'ghcr.io/llvm/libc-ubuntu-24.04:latest@sha256:a902fb53bdad5e4a4bb6c11b6584e717a7b3d6e886f1ea58e11f95e46226249c'
strategy:
fail-fast: false # If one arch fails, let the other finish
matrix:
include:
- name: gcc
c_compiler: gcc
cxx_compiler: g++
- name: gcc-7
c_compiler: /usr/local/gcc7/bin/gcc
cxx_compiler: /usr/local/gcc7/bin/g++
- name: gcc-8
c_compiler: /usr/local/gcc8/bin/gcc
cxx_compiler: /usr/local/gcc8/bin/g++
- name: gcc-9
c_compiler: gcc-9
cxx_compiler: g++-9
- name: gcc-11
c_compiler: gcc-11
cxx_compiler: g++-11
steps:
- name: Checkout LLVM
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Configure CMake
run: |
cmake -B build -S runtimes -G Ninja \
-DLLVM_ENABLE_RUNTIMES=libc \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} \
-DCMAKE_BUILD_TYPE=Release
- name: Build and Run
run: |
cmake --build build --target libc-shared-tests