blob: c1718f1f7242cabdef40c8bdd7a8aa841f87130b [file] [edit]
# This workflow exercises libc++ tools whose testing doesn't belong in the conformance
# suite or in `check-cxx` proper.
#
# The actual logic lives in `libcxx/utils/ci/run-buildbot test-tools`, which is also how
# failures can be reproduced locally (after installing libcxx/utils/requirements.txt):
#
# CC=clang CXX=clang++ libcxx/utils/ci/run-buildbot test-tools
name: "[libc++] Test tools"
on:
pull_request:
paths:
- 'libcxx/**'
- 'libcxxabi/**'
- 'libunwind/**'
- 'runtimes/**'
- 'cmake/**'
- '.github/workflows/libcxx-pr-test-tools.yml'
schedule:
# Match the main libc++ CI cron
- cron: '0 8 * * *'
permissions:
contents: read # Default everything to read-only
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-tools:
if: github.repository_owner == 'llvm'
runs-on: llvm-premerge-linux-32-runners
container:
image: ghcr.io/llvm/libcxx-linux-builder:5e1edea790610e7ef8c5e06b6e5185fe5dd1c830
env:
CC: clang-23
CXX: clang++-23
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0 # some tools need full git history
# TODO(#226230): Remove this once we have resolved the underlying issue
# causing actions/checkout to be prematurely killed.
env:
GIT_TRACE: "true"
GIT_CURL_VERBOSE: "true"
- name: Set up Python dependencies
shell: bash
run: |
python3 -m venv .venv
source .venv/bin/activate
pip install -r libcxx/utils/requirements.txt
- name: Run the tooling smoke test
shell: bash
run: |
source .venv/bin/activate
libcxx/utils/ci/run-buildbot test-tools