Skip to content

Nightly Build

Nightly Build #99

Workflow file for this run

name: Nightly Build
on:
schedule:
# Run daily at 3 AM UTC
- cron: '0 3 * * *'
workflow_dispatch:
inputs:
docker_image:
description: 'Docker image for build'
type: string
required: false
python_version:
description: 'Python version, e.g. 3.10, 3.12, 3.13 (default: builds both 3.10 and 3.12)'
type: string
required: false
gpu_archs:
description: 'GPU architectures (default: gfx942;gfx950)'
type: string
required: false
skip_tests:
description: 'Skip test job for faster iteration'
type: boolean
default: false
skip_promote:
description: 'Skip promote job (build + test only)'
type: boolean
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/aiter-release.yaml
with:
release_type: ${{ github.event_name == 'schedule' && 'nightlies' || github.event_name == 'pull_request' && 'nightlies' || 'devreleases' }}
docker_image_py310: ${{ github.event.inputs.docker_image || 'rocm/pytorch:rocm7.2_ubuntu22.04_py3.10_pytorch_release_2.9.1' }}
docker_image_py312: ${{ github.event.inputs.docker_image || 'rocm/pytorch:rocm7.2_ubuntu24.04_py3.12_pytorch_release_2.9.1' }}
build_py310: ${{ github.event.inputs.python_version == '' || github.event.inputs.python_version == '3.10' }}
build_py312: ${{ github.event.inputs.python_version == '' || github.event.inputs.python_version == '3.12' }}
gpu_archs: ${{ github.event.inputs.gpu_archs || 'gfx942;gfx950' }}
runner: build-only-aiter
add_date_stamp: true
permissions:
id-token: write
contents: read
actions: read
test:
needs: build
if: ${{ !(github.event.inputs.skip_tests || false) }}
uses: ./.github/workflows/test-whl.yaml
with:
release_type: ${{ github.event_name == 'schedule' && 'nightlies' || github.event_name == 'pull_request' && 'nightlies' || 'devreleases' }}
wheel_names: ${{ needs.build.outputs.wheel_names }}
permissions:
contents: read
actions: read
promote:
needs: [build, test]
if: >-
${{ github.repository_owner == 'ROCm'
&& !(github.event.inputs.skip_promote || false) }}
uses: ./.github/workflows/promote.yaml
with:
release_type: ${{ github.event_name == 'schedule' && 'nightlies' || github.event_name == 'pull_request' && 'nightlies' || 'devreleases' }}
wheel_names: ${{ needs.build.outputs.wheel_names }}
permissions:
id-token: write
contents: read