Skip to content

ci: add multi-arch CI with baked-ROCm images for 2 new distros (so far) #282

ci: add multi-arch CI with baked-ROCm images for 2 new distros (so far)

ci: add multi-arch CI with baked-ROCm images for 2 new distros (so far) #282

Workflow file for this run

name: Nightly CI
on:
schedule:
# Run nightly at 2 AM UTC
- cron: '0 2 * * *'
pull_request:
branches: [ amd-staging, amd-mainline, release/** ]
paths:
- '.github/workflows/**'
workflow_dispatch:
inputs:
gpu_config:
description: "GPU configuration"
required: true
default: all
type: choice
options:
- all
- gfx1100
- gfx1151
install_method:
description: "Installation method"
required: true
default: all
type: choice
options:
- all
- whl-multi-arch
- tarball-multi-arch
distro:
description: "Distro to build"
required: true
default: all
type: choice
options:
- all
- ubuntu-24.04
- ubuntu-26.04
- sles-15.7
- almalinux-8
permissions:
contents: read
packages: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
setup:
name: "Setup CI"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
outputs:
gpu_configs: ${{ steps.config.outputs.gpu_configs }}
install_methods: ${{ steps.config.outputs.install_methods }}
distros: ${{ steps.config.outputs.distros }}
distro_map: ${{ steps.config.outputs.distro_map }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CI
id: config
env:
GPU_CONFIG: ${{ github.event.inputs.gpu_config }}
INSTALL_METHOD: ${{ github.event.inputs.install_method }}
DISTRO: ${{ github.event.inputs.distro }}
run: python3 .github/build_tools/configure_ci.py
build:
needs: [setup]
strategy:
fail-fast: false
matrix:
distro: ${{ fromJson(needs.setup.outputs.distros) }}
uses: ./.github/workflows/build-rocm-examples-reusable.yml
with:
distro: ${{ matrix.distro }}
distro_map: ${{ needs.setup.outputs.distro_map }}
gpu_configs: ${{ needs.setup.outputs.gpu_configs }}
install_methods: ${{ needs.setup.outputs.install_methods }}
secrets: inherit