Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Nightly ROCgdb Build

on:
schedule:
# Run at 2:00 AM UTC every night (avoid :00 and :30 to reduce API load)
- cron: '7 2 * * *'
workflow_dispatch:
inputs:
branch:
description: 'Branch to build (default: master)'
required: false
default: 'master'
type: string

permissions:
contents: read

jobs:
nightly-build-linux:
name: Nightly Build Linux
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
amdgpu_family: [gfx94X-dcgpu]
uses: ./.github/workflows/therock-ci-linux.yml
secrets: inherit
with:
amdgpu_families: ${{ matrix.amdgpu_family }}
artifact_group: nightly-${{ matrix.amdgpu_family }}
rocgdb_ref: ${{ inputs.branch || 'master' }}
extra_cmake_options: -DTHEROCK_ROCGDB_UPSTREAM_BUILD=ON

nightly_build_summary:
name: Nightly Build Summary
if: always()
needs:
- nightly-build-linux
runs-on: ubuntu-24.04
steps:
- name: Output failed jobs
run: |
echo '${{ toJson(needs) }}'
FAILED_JOBS="$(echo '${{ toJson(needs) }}' \
| jq --raw-output \
'map_values(select(.result!="success" and .result!="skipped")) | keys | join(",")' \
)"
if [[ "${FAILED_JOBS}" != "" ]]; then
echo "The following jobs failed: ${FAILED_JOBS}"
exit 1
fi
13 changes: 13 additions & 0 deletions .github/workflows/therock-ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ on:
type: string
extra_cmake_options:
type: string
default: >
-DTHEROCK_ENABLE_ALL=OFF
-DTHEROCK_BUILD_TESTING=ON
-DTHEROCK_ENABLE_DEBUG_TOOLS=ON
-DTHEROCK_SHARED_PYTHON_EXECUTABLES=/opt/python-shared/cp310-cp310/bin/python3;/opt/python-shared/cp311-cp311/bin/python3;/opt/python-shared/cp312-cp312/bin/python3;/opt/python-shared/cp313-cp313/bin/python3;/opt/python-shared/cp314-cp314/bin/python3
-DTHEROCK_DIST_PYTHON_EXECUTABLES=/opt/python/cp310-cp310/bin/python;/opt/python/cp311-cp311/bin/python;/opt/python/cp312-cp312/bin/python;/opt/python/cp313-cp313/bin/python
-DTHEROCK_USE_EXTERNAL_ROCGDB=ON
-DTHEROCK_ROCGDB_SOURCE_DIR=./rocgdb_under_test
rocgdb_ref:
type: string
required: false
description: 'Branch/ref to checkout for rocGDB (defaults to workflow trigger ref)'

permissions:
contents: read
Expand Down Expand Up @@ -43,6 +55,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: rocgdb_under_test
ref: ${{ inputs.rocgdb_ref || github.ref }}

- name: Install python deps
run: |
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/therock-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ jobs:
with:
amdgpu_families: ${{ matrix.amdgpu_family }}
artifact_group: ${{ matrix.amdgpu_family }}
extra_cmake_options: >
-DTHEROCK_ENABLE_ALL=OFF
-DTHEROCK_BUILD_TESTING=ON
-DTHEROCK_ENABLE_DEBUG_TOOLS=ON
-DTHEROCK_SHARED_PYTHON_EXECUTABLES=/opt/python-shared/cp310-cp310/bin/python3;/opt/python-shared/cp311-cp311/bin/python3;/opt/python-shared/cp312-cp312/bin/python3;/opt/python-shared/cp313-cp313/bin/python3;/opt/python-shared/cp314-cp314/bin/python3
-DTHEROCK_DIST_PYTHON_EXECUTABLES=/opt/python/cp310-cp310/bin/python;/opt/python/cp311-cp311/bin/python;/opt/python/cp312-cp312/bin/python;/opt/python/cp313-cp313/bin/python
-DTHEROCK_USE_EXTERNAL_ROCGDB=ON
-DTHEROCK_ROCGDB_SOURCE_DIR=./rocgdb_under_test

therock_ci_summary:
name: TheRock CI Summary
Expand Down
Loading