diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 418ea7a8..cb2b3395 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - runner: ['navi3', 'vega20', 'mi200', 'mi300'] + runner: ['navi3', 'vega20', 'mi200', 'mi300', 'rhel', 'sles'] os: ['ubuntu-22.04'] build-type: ['RelWithDebInfo'] ci-flags: ['--linter clang-tidy'] @@ -45,6 +45,7 @@ jobs: - uses: actions/checkout@v4 - name: Install requirements + if: ${{ !contains(matrix.runner, 'rhel') && !contains(matrix.runner, 'sles') }} timeout-minutes: 10 shell: bash run: | @@ -55,6 +56,13 @@ jobs: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12 python3 -m pip install -r requirements.txt + - name: Install requirements For RHEL & SLES + if: ${{ contains(matrix.runner, 'rhel') || contains(matrix.runner, 'sles') }} + timeout-minutes: 10 + shell: bash + run: | + python3 -m pip install -r requirements.txt + - name: List Files shell: bash run: | @@ -77,6 +85,7 @@ jobs: echo 'ROCPROFILER_PC_SAMPLING_BETA_ENABLED=1' >> $GITHUB_ENV - name: Configure, Build, and Test + if: ${{ !contains(matrix.runner, 'rhel') && !contains(matrix.runner, 'sles') }} timeout-minutes: 30 shell: bash run: @@ -98,6 +107,29 @@ jobs: -- -LE "${EXCLUDED_TESTS}" + - name: Configure, Build, and Test + if: ${{ contains(matrix.runner, 'rhel') || contains(matrix.runner, 'sles') }} + timeout-minutes: 30 + shell: bash + run: + sudo LD_LIBRARY_PATH=./build/lib:$LD_LIBRARY_PATH python3 ./source/scripts/run-ci.py -B build + --name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.runner }}-mi300-core + --build-jobs 16 + --site $(echo $RUNNER_HOSTNAME)-$(/opt/rocm/bin/rocm_agent_enumerator | sed -n '2 p') + --gpu-targets ${{ env.GPU_TARGETS }} + --run-attempt ${{ github.run_attempt }} + -- + -DROCPROFILER_DEP_ROCMCORE=ON + -DROCPROFILER_BUILD_DOCS=OFF + -DROCPROFILER_BUILD_CI=OFF + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-sdk + -DCPACK_GENERATOR='DEB;RPM;TGZ' + -DCPACK_PACKAGING_INSTALL_PREFIX="$(realpath /opt/rocm)" + -DPython3_EXECUTABLE=$(which python3) + -- + -LE "${EXCLUDED_TESTS}" + - name: Install if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }} timeout-minutes: 10