CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
95 lines
4.5 KiB
YAML
95 lines
4.5 KiB
YAML
name: Setup
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_variant:
|
|
type: string
|
|
default: "release"
|
|
multi_arch:
|
|
type: boolean
|
|
default: false
|
|
description: "If true, group all families into one entry per build_variant instead of expanding cross-product"
|
|
outputs:
|
|
enable_build_jobs:
|
|
description: Whether to enable build jobs.
|
|
value: true
|
|
linux_variants:
|
|
description: Matrix variants to run on Linux
|
|
value: ${{ jobs.setup.outputs.linux_variants }}
|
|
linux_test_labels:
|
|
description: ROCm projects to run Linux tests on. Optional filter.
|
|
value: ${{ jobs.setup.outputs.linux_test_labels }}
|
|
windows_variants:
|
|
description: Matrix variants to run on Windows.
|
|
value: ${{ jobs.setup.outputs.windows_variants }}
|
|
test_type:
|
|
description: The test type to run for component tests (i.e. smoke, full)
|
|
value: 'smoke'
|
|
windows_test_labels:
|
|
description: ROCm projects to run Windows tests on. Optional filter.
|
|
value: ${{ jobs.setup.outputs.windows_test_labels }}
|
|
rocm_package_version:
|
|
description: ROCm package version (primarily for Python packages).
|
|
value: ${{ jobs.setup.outputs.rocm_package_version }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
BASE_REF: '0efc7532e43c16b532fdd2887e00aec8eb69e10f'
|
|
outputs:
|
|
enable_build_jobs: true
|
|
linux_variants: >
|
|
[ {"test-runs-on": "", "family": "gfx110X-all", "bypass_tests_for_releases": true, "sanity_check_only_for_family": true, "build_variant_label": "release", "build_variant_suffix": "", "build_variant_cmake_preset": "", "artifact_group": "gfx110X-all"}, {"test-runs-on": "", "family": "gfx94X-dcgpu", "bypass_tests_for_releases": true, "sanity_check_only_for_family": true, "build_variant_label": "release", "build_variant_suffix": "", "build_variant_cmake_preset": "", "artifact_group": "gfx94X-dcgpu"}]
|
|
linux_test_labels: ${{ steps.configure.outputs.linux_test_labels }}
|
|
windows_variants: >
|
|
[{"test-runs-on": "windows-gfx1151-gpu-rocm", "benchmark-runs-on": "windows-gfx1151-gpu-rocm", "family": "gfx1151", "build_variant_label": "release", "build_variant_suffix": "", "build_variant_cmake_preset": "windows-release", "artifact_group": "gfx1151"}]
|
|
test_type: 'smoke'
|
|
windows_test_labels: ${{ steps.configure.outputs.windows_test_labels }}
|
|
rocm_package_version: ${{ steps.rocm_package_version.outputs.rocm_package_version }}
|
|
steps:
|
|
- name: Checkout TheRock repository
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
repository: "ROCm/TheRock"
|
|
ref: 'compiler/amd-staging'
|
|
fetch-depth: 0
|
|
|
|
- name: SHA of TheRock
|
|
run: |
|
|
git rev-parse HEAD
|
|
git log -1
|
|
- name: Set PR_LABELS variable with labels assigned to pull request
|
|
if: ${{ github.event.pull_request }} # only set PR labels var if this is a pull request
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
PR_NUMBER: ${{ github.event.number }}
|
|
run: |
|
|
echo "PR_LABELS=$(gh pr view ${PR_NUMBER} --repo ROCm/HIPIFY --json labels)" >> $GITHUB_ENV
|
|
|
|
- name: Configuring CI options
|
|
id: configure
|
|
env:
|
|
#INPUT_LINUX_AMDGPU_FAMILIES: ${{ github.event.inputs.linux_amdgpu_families }}
|
|
INPUT_LINUX_AMDGPU_FAMILIES: 'gfx94X-dcgpu,gfx110X-all,gfx1151'
|
|
LINUX_TEST_LABELS: ${{ github.event.inputs.linux_test_labels }}
|
|
LINUX_USE_PREBUILT_ARTIFACTS: ${{ github.event.inputs.linux_use_prebuilt_artifacts }}
|
|
#INPUT_WINDOWS_AMDGPU_FAMILIES: ${{ github.event.inputs.windows_amdgpu_families }}
|
|
INPUT_WINDOWS_AMDGPU_FAMILIES: "gfx1151"
|
|
WINDOWS_TEST_LABELS: ${{ github.event.inputs.windows_test_labels }}
|
|
WINDOWS_USE_PREBUILT_ARTIFACTS: ${{ github.event.inputs.windows_use_prebuilt_artifacts }}
|
|
BUILD_VARIANT: ${{ inputs.build_variant }}
|
|
MULTI_ARCH: ${{ inputs.multi_arch }}
|
|
# Variable comes from ROCm organization variable 'ROCM_THEROCK_TEST_RUNNERS'
|
|
ROCM_THEROCK_TEST_RUNNERS: ${{ vars.ROCM_THEROCK_TEST_RUNNERS }}
|
|
LOAD_TEST_RUNNERS_FROM_VAR: false
|
|
run: ./build_tools/github_actions/configure_ci.py
|
|
|
|
- name: Compute package version
|
|
id: rocm_package_version
|
|
run: python ./build_tools/compute_rocm_package_version.py --release-type=dev
|