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
120 lines
3.9 KiB
YAML
120 lines
3.9 KiB
YAML
name: Release Binaries All
|
|
|
|
permissions:
|
|
contents: read # Default everything to read-only
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 6"
|
|
workflow_dispatch:
|
|
inputs:
|
|
release-version:
|
|
description: 'Release Version'
|
|
required: true
|
|
type: string
|
|
upload:
|
|
description: 'Upload binaries to the release page'
|
|
required: true
|
|
default: false
|
|
type: boolean
|
|
|
|
workflow_call:
|
|
inputs:
|
|
release-version:
|
|
description: 'Release Version'
|
|
required: true
|
|
type: string
|
|
upload:
|
|
description: 'Upload binaries to the release page'
|
|
required: true
|
|
default: false
|
|
type: boolean
|
|
secrets:
|
|
LLVM_TOKEN_GENERATOR_CLIENT_ID:
|
|
description: "Client ID for our GitHub App we use for generating access tokens."
|
|
required: true
|
|
LLVM_TOKEN_GENERATOR_PRIVATE_KEY:
|
|
description: "Private key for our GitHub App we use for generating access tokens."
|
|
required: true
|
|
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
# When a PR is closed, we still start this workflow, but then skip
|
|
# all the jobs, which makes it effectively a no-op. The reason to
|
|
# do this is that it allows us to take advantage of concurrency groups
|
|
# to cancel in progress CI jobs whenever the PR is closed.
|
|
- closed
|
|
paths:
|
|
- '.github/workflows/release-binaries-all.yml'
|
|
- '.github/workflows/release-binaries.yml'
|
|
- '.github/workflows/release-binaries-setup-stage/*'
|
|
- '.github/workflows/release-binaries-save-stage/*'
|
|
- 'clang/cmake/caches/Release.cmake'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || 'dispatch' }}
|
|
cancel-in-progress: True
|
|
|
|
jobs:
|
|
setup-variables:
|
|
if: >-
|
|
(github.event_name != 'pull_request' || github.event.action != 'closed')
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
release-version: ${{ steps.vars.outputs.release-version }}
|
|
upload: ${{ steps.vars.outputs.upload }}
|
|
steps:
|
|
- name: Validate Input
|
|
if: inputs.release-version != ''
|
|
uses: ./.github/workflows/validate-release-version
|
|
with:
|
|
release-version: ${{ inputs.release-version }}
|
|
- shell: bash
|
|
id: vars
|
|
env:
|
|
RELEASE_VERSION: ${{ inputs.release-version }}
|
|
run: |
|
|
upload="${{ inputs.upload }}"
|
|
release_version="$RELEASE_VERSION"
|
|
if [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.event_name }}" = "schedule" ]; then
|
|
upload="false"
|
|
release_version=""
|
|
fi
|
|
echo "release-version=$release_version" >> "$GITHUB_OUTPUT"
|
|
echo "upload=$upload" >> "$GITHUB_OUTPUT"
|
|
|
|
release-binaries-all:
|
|
name: Build Release Binaries
|
|
needs:
|
|
- setup-variables
|
|
permissions:
|
|
contents: write # For release uploads
|
|
id-token: write # For artifact attestations
|
|
attestations: write # For artifact attestations
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# We use ubuntu-22.04 rather than the latest version to make the built
|
|
# binaries more portable (eg functional aginast older glibc).
|
|
runs-on:
|
|
- ubuntu-22.04
|
|
- ubuntu-22.04-arm
|
|
- macos-14
|
|
- windows-2022
|
|
- windows-11-arm
|
|
|
|
uses: ./.github/workflows/release-binaries.yml
|
|
with:
|
|
release-version: "${{ needs.setup-variables.outputs.release-version }}"
|
|
upload: ${{ needs.setup-variables.outputs.upload == 'true'}}
|
|
runs-on: "${{ matrix.runs-on }}"
|
|
secrets:
|
|
# These will be empty for pull_request events, but that's fine, because
|
|
# the release-binaries workflow does not use these secrets for the
|
|
# pull_request event.
|
|
LLVM_TOKEN_GENERATOR_CLIENT_ID: ${{ secrets.LLVM_TOKEN_GENERATOR_CLIENT_ID }}
|
|
LLVM_TOKEN_GENERATOR_PRIVATE_KEY: ${{ secrets.LLVM_TOKEN_GENERATOR_PRIVATE_KEY }}
|