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
96 lines
3.1 KiB
YAML
96 lines
3.1 KiB
YAML
# Copyright Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Copy release to dev bucket
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
rocm_version:
|
|
description: ROCm version to copy from nightly releases to dev releases, e.g. 7.14.0a20260617 (see https://rocm.nightlies.amd.com/whl-multi-arch/)
|
|
type: string
|
|
python_version:
|
|
type: choice
|
|
options:
|
|
- "3.10"
|
|
- "3.11"
|
|
- "3.12"
|
|
- "3.13"
|
|
- "3.14"
|
|
default: "3.12"
|
|
include_torch:
|
|
description: Copy 'torch' packages in addition to 'rocm' packages?
|
|
type: boolean
|
|
default: false
|
|
include_jax:
|
|
description: Copy 'jax' packages in addition to 'rocm' packages?
|
|
type: boolean
|
|
default: false
|
|
permissions:
|
|
contents: read
|
|
|
|
run-name: >-
|
|
Copy nightly -> dev |
|
|
rocm ${{ inputs.rocm_version }} |
|
|
py ${{ inputs.python_version }} |
|
|
extras: ${{
|
|
inputs.include_torch && inputs.include_jax && 'PyTorch + JAX' ||
|
|
inputs.include_torch && 'PyTorch' ||
|
|
inputs.include_jax && 'JAX' ||
|
|
'none'
|
|
}}
|
|
|
|
jobs:
|
|
copy_python_packages:
|
|
name: Copy nightly -> dev | rocm ${{ inputs.rocm_version }} | py ${{ inputs.python_version }}
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
# TODO: migrate to boto3 Python package instead of this native tool?
|
|
- name: Install the AWS tool
|
|
run: ./dockerfiles/install_awscli.sh
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3
|
|
with:
|
|
aws-region: us-east-2
|
|
role-to-assume: arn:aws:iam::692859939525:role/therock-dev
|
|
|
|
- name: Select Python version
|
|
run: |
|
|
python build_tools/github_actions/python_to_cp_version.py \
|
|
--python-version ${{ inputs.python_version }}
|
|
|
|
- name: Copy ROCm packages between S3 buckets
|
|
run: |
|
|
aws s3 cp \
|
|
s3://therock-nightly-python/v4/whl/ \
|
|
s3://therock-dev-python/v4/whl/ \
|
|
--recursive --exclude "*" \
|
|
--include "rocm*${{ inputs.rocm_version }}*"
|
|
|
|
- name: Copy torch wheels between S3 buckets
|
|
if: ${{ inputs.include_torch }}
|
|
run: |
|
|
aws s3 cp \
|
|
s3://therock-nightly-python/v4/whl/ \
|
|
s3://therock-dev-python/v4/whl/ \
|
|
--recursive --exclude "*" \
|
|
--include "*torch*${{ inputs.rocm_version }}*${{ env.cp_version }}*" \
|
|
--include "apex*${{ inputs.rocm_version }}*${{ env.cp_version }}*" \
|
|
--include "triton*${{ inputs.rocm_version }}*${{ env.cp_version }}*"
|
|
|
|
- name: Copy JAX wheels between S3 buckets
|
|
if: ${{ inputs.include_jax }}
|
|
run: |
|
|
aws s3 cp \
|
|
s3://therock-nightly-python/v4/whl/ \
|
|
s3://therock-dev-python/v4/whl/ \
|
|
--recursive --exclude "*" \
|
|
--include "jax*${{ inputs.rocm_version }}*${{ env.cp_version }}*"
|