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
125 lines
4.7 KiB
YAML
125 lines
4.7 KiB
YAML
# Copyright Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Multi-Arch Build - Sharded Pipeline for Windows
|
|
#
|
|
# This workflow builds TheRock in stages:
|
|
# 1. foundation (generic) - sysdeps, base
|
|
# 2. compiler-runtime (generic) - compiler, runtimes
|
|
# 3. math-libs (per-arch) - BLAS, FFT, etc.
|
|
#
|
|
# Stages disabled on Windows: comm-libs, dctools-core, profiler-apps, media
|
|
# (see BUILD_TOPOLOGY.toml disable_platforms)
|
|
#
|
|
# Artifacts flow between stages via S3 using the artifact_manager.py tool.
|
|
|
|
name: Multi-Arch Build (Windows)
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
artifact_group:
|
|
type: string
|
|
matrix_per_family_json:
|
|
type: string
|
|
description: "JSON array of {amdgpu_family, test-runs-on} objects for per-arch stages"
|
|
dist_amdgpu_families:
|
|
type: string
|
|
description: "Semicolon-separated list of all GPU families for dist targets"
|
|
build_variant_label:
|
|
type: string
|
|
build_variant_cmake_preset:
|
|
type: string
|
|
build_variant_suffix:
|
|
type: string
|
|
expect_failure:
|
|
type: boolean
|
|
prebuilt_stages:
|
|
type: string
|
|
default: ""
|
|
description: "Comma-separated build stages to skip (artifacts already copied by the orchestrator)"
|
|
rocm_package_version:
|
|
type: string
|
|
release_type:
|
|
description: 'Release type: "" for CI, or "dev", "nightly", "prerelease".'
|
|
type: string
|
|
default: ""
|
|
test_type:
|
|
type: string # Temp addiiton until release type is fixed
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
# ==========================================================================
|
|
# STAGE: foundation (generic)
|
|
# ==========================================================================
|
|
foundation:
|
|
if: ${{ !cancelled() && !failure() && !contains(inputs.prebuilt_stages, 'foundation') }}
|
|
uses: ./.github/workflows/multi_arch_build_windows_artifacts.yml
|
|
secrets: inherit
|
|
with:
|
|
stage_name: foundation
|
|
stage_display_name: "Stage - Foundation"
|
|
timeout_minutes: 180 # 3 hours
|
|
dist_amdgpu_families: ${{ inputs.dist_amdgpu_families }}
|
|
build_variant_cmake_preset: ${{ inputs.build_variant_cmake_preset }}
|
|
rocm_package_version: ${{ inputs.rocm_package_version }}
|
|
release_type: ${{ inputs.release_type }}
|
|
test_type: ${{ inputs.test_type }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
# ==========================================================================
|
|
# STAGE: compiler-runtime (generic)
|
|
# ==========================================================================
|
|
compiler-runtime:
|
|
needs: foundation
|
|
if: ${{ !cancelled() && !failure() && !contains(inputs.prebuilt_stages, 'compiler-runtime') }}
|
|
uses: ./.github/workflows/multi_arch_build_windows_artifacts.yml
|
|
secrets: inherit
|
|
with:
|
|
stage_name: compiler-runtime
|
|
stage_display_name: "Stage - Compiler Runtime"
|
|
timeout_minutes: 480 # 8 hours (compiler is big)
|
|
dist_amdgpu_families: ${{ inputs.dist_amdgpu_families }}
|
|
build_variant_cmake_preset: ${{ inputs.build_variant_cmake_preset }}
|
|
rocm_package_version: ${{ inputs.rocm_package_version }}
|
|
release_type: ${{ inputs.release_type }}
|
|
test_type: ${{ inputs.test_type }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
# ==========================================================================
|
|
# STAGE: math-libs (per-arch)
|
|
# ==========================================================================
|
|
math-libs:
|
|
needs: compiler-runtime
|
|
if: ${{ !cancelled() && !failure() && !contains(inputs.prebuilt_stages, 'math-libs') }}
|
|
strategy:
|
|
# `fail-fast: false` lets all families complete even if one fails.
|
|
# This is useful for CI (to see all failures at once), but for releases
|
|
# this risks publishing incomplete packages. Release pipelines may want
|
|
# to either set `fail-fast: true` or add a validation step that blocks
|
|
# promotion unless all jobs succeeded.
|
|
fail-fast: false
|
|
matrix:
|
|
family_info: ${{ fromJSON(inputs.matrix_per_family_json) }}
|
|
uses: ./.github/workflows/multi_arch_build_windows_artifacts.yml
|
|
secrets: inherit
|
|
with:
|
|
stage_name: math-libs
|
|
stage_display_name: "Stage - Math Libs (${{ matrix.family_info.amdgpu_family }})"
|
|
timeout_minutes: 480 # 8 hours
|
|
amdgpu_family: ${{ matrix.family_info.amdgpu_family }}
|
|
dist_amdgpu_families: ${{ inputs.dist_amdgpu_families }}
|
|
build_variant_cmake_preset: ${{ inputs.build_variant_cmake_preset }}
|
|
rocm_package_version: ${{ inputs.rocm_package_version }}
|
|
release_type: ${{ inputs.release_type }}
|
|
test_type: ${{ inputs.test_type }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|