f16c87f594
* Enabling Navi3 and Vega20 runners * Update continuous_integration.yml * Update continuous_integration.yml * Fixing Github Actions issues * Fixing docs workflow * Fixing docs workflow miniconda3 location * Fixing docs workflow env setup * Fixing docs workflow env setup * Fixing docs workflow miniconda3 env * Fixing docs source build workflow * Balancing between navi3, vega20, mi300, mi200 * git sync workflow update * Adding Jira ticket place holder in PR Description * Fixing RHEL & SLES Builds * Fixing RHEL & SLES Builds * Fixing RHEL & SLES Builds * Fixing Re-run workflow * Update pull_request_template.md * Update continuous_integration.yml --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
71 líneas
2.3 KiB
YAML
71 líneas
2.3 KiB
YAML
name: Generate AFAR
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
rocm-release:
|
|
description: 'ROCm Release Version'
|
|
required: true
|
|
type: string
|
|
build-number:
|
|
description: 'ROCm CI Build Number'
|
|
required: true
|
|
type: string
|
|
build-job-name:
|
|
description: 'ROCm CI Build Job Name'
|
|
required: true
|
|
type: string
|
|
rocprofiler-sdk-revision:
|
|
description: 'ROCProfiler-SDK Commit Hash'
|
|
default: 'amd-staging'
|
|
required: true
|
|
type: string
|
|
extra-cmake-args:
|
|
description: 'Extra Arguments to give to cmake configuration'
|
|
required: false
|
|
type: string
|
|
package-types:
|
|
description: 'Package types provided to `CPACK_GENERATOR`'
|
|
required: true
|
|
default: 'STGZ'
|
|
type: string
|
|
|
|
jobs:
|
|
generate-packages-ubuntu-22:
|
|
runs-on: mi300-emu-runner-set
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: '${{ inputs.rocprofiler-sdk-revision }}'
|
|
path: 'rocprofiler-sdk'
|
|
|
|
- name: Install Requirements
|
|
timeout-minutes: 10
|
|
shell: bash
|
|
run: |
|
|
git config --global --add safe.directory '${{github.workspace}}/*'
|
|
apt-get update
|
|
amdgpu-repo --rocm-build=${{ inputs.build-job-name }}/${{ inputs.build-number }}
|
|
apt-get upgrade -y
|
|
apt-get install -y build-essential cmake rocm-llvm-dev python3-pip libdw-dev
|
|
python3 -m pip install -r ${{github.workspace}}/rocprofiler-sdk/requirements.txt
|
|
|
|
- name: Building ROCProfiler-SDK Packages
|
|
shell: bash
|
|
run: |
|
|
cmake -B build-rocprofiler-sdk -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/rocm -DCPACK_GENERATOR="${{ inputs.package-types }}" -DROCPROFILER_BUILD_{TESTS,SAMPLES}=ON ${{ inputs.extra-cmake-args }} ${{github.workspace}}/rocprofiler-sdk
|
|
cmake --build build-rocprofiler-sdk --parallel 16
|
|
cmake --build build-rocprofiler-sdk --target package --parallel 16
|
|
|
|
- name: Archive Packages
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Packages-${{ inputs.rocm-release }}
|
|
path: |
|
|
${{github.workspace}}/build-*/*.sh
|
|
${{github.workspace}}/build-*/*.deb
|
|
${{github.workspace}}/build-*/*.rpm
|
|
${{github.workspace}}/build-*/*.tar.gz
|