8bc0063f2e
Update super repo codeowners- add Pratik to any doc changes for rocprofiler-compute. Remove rocprofiler-compute-mi-rhel9.yml from super repo workflow folder- unused and out of date, coverage is already in RHEL8 workflow. Remove CODEOWNERS, dependabot.yml, and all workflows from the projects/rocprofiler-compute/ project- confirmed these do not do anything anymore after being copied into super repo's main ./github/ section. Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com> * Add a branch filter for push events * Update .github/CODEOWNERS Use reviewers team instead of using the individual profiles. Co-authored-by: David Galiffi <David.Galiffi@amd.com> Update owners section for rocprofiler-compute codeowners, fix spacing Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com> --------- Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com> Co-authored-by: David Galiffi <David.Galiffi@amd.com>
77 строки
2.6 KiB
YAML
77 строки
2.6 KiB
YAML
name: rocprofiler-compute Packaging
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- 'projects/rocprofiler-compute/**'
|
|
tags:
|
|
- "v[1-9].[0-9]+.[0-9]+*"
|
|
- "rocm-[0-9]+.[0-9]+.[0-9]+*"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
distbuild:
|
|
runs-on: ubuntu-latest
|
|
name: Create release distribution
|
|
env:
|
|
INSTALL_DIR: /tmp
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: projects/rocprofiler-compute
|
|
- name: Verify VERSION file consistent with tag
|
|
run: utils/ver_check.py --tag ${{github.ref_name}}
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.8'
|
|
- name: Python dependency installs
|
|
working-directory: projects/rocprofiler-compute
|
|
run: python3 -m pip install -t${INSTALL_DIR}/python-libs -r requirements.txt
|
|
- name: Configure
|
|
working-directory: projects/rocprofiler-compute
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake -DPYTHON_DEPS=${INSTALL_DIR}/python-libs ..
|
|
- name: Release tarball
|
|
working-directory: projects/rocprofiler-compute
|
|
run: |
|
|
cd build
|
|
make package_source
|
|
- name: Rename tarball
|
|
working-directory: projects/rocprofiler-compute
|
|
run: mv build/rocprofiler-compute-*.tar.gz build/rocprofiler-compute-${{github.ref_name}}.tar.gz
|
|
- name: Archive tarball
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: rocprofiler-compute-${{github.ref_name}}.tar.gz
|
|
path: projects/rocprofiler-compute/build/rocprofiler-compute-${{github.ref_name}}.tar.gz
|
|
- name: Set version
|
|
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
|
|
- name: Determine release name
|
|
working-directory: projects/rocprofiler-compute
|
|
run: |
|
|
if [[ ${{github.ref_name}} == rocm-* ]]; then
|
|
echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }} for ${{github.ref_name}}"
|
|
else
|
|
echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }}"
|
|
fi >> $GITHUB_ENV
|
|
- name: Upload tarball Release Asset
|
|
uses: softprops/action-gh-release@v2
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
fail_on_unmatched: True
|
|
generate_release_notes: True
|
|
draft: False # toggle for debugging
|
|
files: |
|
|
projects/rocprofiler-computebuild/rocprofiler-compute-${{github.ref_name}}.tar.gz
|
|
name: ${{ env.RELEASE_NAME }}
|