Skip to content

Commit

Permalink
Update continuous_integration.yml (#926)
Browse files Browse the repository at this point in the history
* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

* Update continuous_integration.yml

---------

Co-authored-by: Gopesh Bhardwaj <[email protected]>
  • Loading branch information
ammarwa and bgopesh authored Jun 26, 2024
1 parent a045947 commit 29d8b14
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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: |
Expand All @@ -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: |
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 29d8b14

Please sign in to comment.