Files
TheRock/rocm-systems/.github/workflows/profiler-hub-ci.yml
T
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

113 lines
3.7 KiB
YAML

name: profiler-hub CI
run-name: profiler-hub-ci
on:
workflow_dispatch:
push:
branches:
- develop
paths:
- '.github/workflows/profiler-hub-ci.yml'
- 'profilers/profiler-hub/**'
- '!profilers/profiler-hub/build/**'
- '!profilers/profiler-hub/docs/**'
- '!profilers/profiler-hub/README.md'
pull_request:
branches:
- develop
paths:
- '.github/workflows/profiler-hub-ci.yml'
- 'profilers/profiler-hub/**'
- '!profilers/profiler-hub/build/**'
- '!profilers/profiler-hub/docs/**'
- '!profilers/profiler-hub/README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-test:
name: ${{ matrix.os }} / ${{ matrix.compiler.name }} / ${{ matrix.build-type }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
compiler:
- { name: gcc, cc: gcc, cxx: g++, pkg: 'gcc g++' }
- { name: clang, cc: clang, cxx: clang++, pkg: 'clang' }
build-type: [Debug, Release]
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: |
profilers/profiler-hub
.github/workflows
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
${{ matrix.compiler.pkg }} \
libsqlite3-dev libspdlog-dev libfmt-dev nlohmann-json3-dev \
libgtest-dev libgmock-dev
# libbenchmark-dev on ubuntu-22.04 ships LTO bytecode from gcc 11.2,
# incompatible with the current runner's gcc 11.4 (lto1: bytecode
# stream ... version 11.2 instead of the expected 11.3). The runner
# image pre-installs libbenchmark-dev, so actively purge it on 22.04
# and let the build fall back to FetchContent. Install on other OSes.
if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
sudo apt-get purge -y libbenchmark-dev libbenchmark1 || true
else
sudo apt-get install -y libbenchmark-dev
fi
- name: Configure
working-directory: profilers/profiler-hub
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
run: |
cmake --version
${CXX} --version
EXTRA_CMAKE_ARGS=()
if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
EXTRA_CMAKE_ARGS+=(-DCMAKE_DISABLE_FIND_PACKAGE_benchmark=ON)
fi
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DPROFILER_HUB_BUILD_TESTS=ON \
-DPROFILER_HUB_BUILD_BENCHMARKS=ON \
"${EXTRA_CMAKE_ARGS[@]}"
- name: Build
working-directory: profilers/profiler-hub
run: cmake --build build --parallel $(nproc)
- name: Verify library artifacts
working-directory: profilers/profiler-hub
run: |
set -e
test -f build/lib/libprofiler-hub.so || { echo "::error::libprofiler-hub.so not built"; exit 1; }
test -f build/lib/libprofiler-hub.a || { echo "::error::libprofiler-hub.a not built"; exit 1; }
ls -la build/lib/
- name: Test
working-directory: profilers/profiler-hub/build
run: ctest --output-on-failure --output-junit test-results.xml
- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: test-results-${{ matrix.os }}-${{ matrix.compiler.name }}-${{ matrix.build-type }}
path: profilers/profiler-hub/build/test-results.xml
if-no-files-found: warn