Merge pull request #15 from ROCm/amd/aelwazir/fixing_rocprofiler_ci
ROCProfiler SDK Update
This commit is contained in:
@@ -65,7 +65,11 @@ jobs:
|
||||
CORE_EXT_RUNNER: mi3xx
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: projects/rocprofiler-sdk
|
||||
set-safe-directory: true
|
||||
|
||||
- name: Install requirements
|
||||
timeout-minutes: 10
|
||||
@@ -197,7 +201,7 @@ jobs:
|
||||
build-type: ['RelWithDebInfo']
|
||||
ci-flags: ['']
|
||||
|
||||
runs-on: rocprof-${{ matrix.os }}
|
||||
runs-on: rocprofiler-${{ matrix.os }}
|
||||
|
||||
# define this for containers
|
||||
env:
|
||||
@@ -205,7 +209,11 @@ jobs:
|
||||
OS_TYPE: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: projects/rocprofiler-sdk
|
||||
set-safe-directory: true
|
||||
|
||||
- name: Install requirements
|
||||
timeout-minutes: 10
|
||||
@@ -282,7 +290,11 @@ jobs:
|
||||
GCC_COMPILER_VERSION: 13
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: projects/rocprofiler-sdk
|
||||
set-safe-directory: true
|
||||
|
||||
- name: Install requirements
|
||||
timeout-minutes: 10
|
||||
|
||||
@@ -39,9 +39,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: projects/rocprofiler-sdk
|
||||
submodules: true
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Create Docs Directory
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
@@ -64,27 +61,6 @@ jobs:
|
||||
python3 -m pip install doxysphinx rocm-docs-core
|
||||
git config --global --add safe.directory '*'
|
||||
../scripts/update-docs.sh
|
||||
- name: Upload artifact
|
||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: projects/rocprofiler-sdk/docs
|
||||
|
||||
deploy-docs:
|
||||
if: github.ref == 'refs/heads/amd-mainline'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-docs
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
build-docs-from-source:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -103,18 +79,19 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: projects/rocprofiler-sdk
|
||||
submodules: true
|
||||
set-safe-directory: true
|
||||
- name: Create Docs Directory
|
||||
shell: bash
|
||||
working-directory: projects/rocprofiler-sdk/
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
mkdir -p projects/rocprofiler-sdk/source/docs/_doxygen/rocprofiler-sdk
|
||||
mkdir -p projects/rocprofiler-sdk/source/docs/_doxygen/roctx
|
||||
mkdir -p source/docs/_doxygen/rocprofiler-sdk
|
||||
mkdir -p source/docs/_doxygen/roctx
|
||||
- name: Install requirements
|
||||
timeout-minutes: 10
|
||||
shell: bash
|
||||
working-directory: projects/rocprofiler-sdk/
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake gcc g++ libdw-dev libsqlite3-dev rpm
|
||||
python3 -m pip install -r requirements.txt
|
||||
@@ -124,8 +101,8 @@ jobs:
|
||||
shell: bash
|
||||
working-directory: projects/rocprofiler-sdk/
|
||||
run:
|
||||
git config --global --add safe.directory '*';
|
||||
export CMAKE_PREFIX_PATH=/opt/rocm:${CMAKE_PREFIX_PATH};
|
||||
git submodule update --init -- .;
|
||||
cmake -B build
|
||||
-DROCPROFILER_DEP_ROCMCORE=ON
|
||||
-DROCPROFILER_BUILD_DOCS=ON
|
||||
|
||||
@@ -18,7 +18,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
cmake:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
fi
|
||||
|
||||
python:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.10']
|
||||
@@ -133,7 +133,7 @@ jobs:
|
||||
fi
|
||||
|
||||
missing-new-line:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -15,7 +15,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
linting:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.8', '3.10', '3.12']
|
||||
|
||||
@@ -28,7 +28,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
regex:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
FOLDERS: "projects/rocprofiler-sdk/source/lib/common projects/rocprofiler-sdk/source/lib/rocprofiler-sdk projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-roctx"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user