🏡 index : quine-global-labs/mirror-ublue-os-akmods.git

---
#
# WARNING THIS IS A GENERATED WORKFLOW. DO NOT EDIT BY HAND!
#
# Generate the workflow by running `just generate-workflows` at git root
# Modify the inputs in workflow-templates
name: Build COREOS-TESTING akmods
on:
  merge_group:
  pull_request:
    branches:
      - main
    paths-ignore:
      - '**.md'
  schedule:
    - cron: '07 0 * * *'  # staggered minute past 00:00 UTC, see Justfile generate-workflows
  workflow_dispatch:
    inputs:
      force:
        description: "Force build all targets (ignore fingerprint guard)"
        type: boolean
        default: false
jobs:
  cache_kernel_coreos-testing_45:
    name: Cache coreos-testing (45)
    uses: ./.github/workflows/reusable-cache-kernel.yml
    secrets: inherit
    permissions:
      actions: read
      contents: read
      packages: write
    with:
      architecture: '["aarch64","x86_64"]'
      kernel_flavor: coreos-testing
      version: 45
  build-coreos-testing_45_common:
    name: Build common coreos-testing (45)
    uses: ./.github/workflows/reusable-build.yml
    secrets: inherit
    permissions:
      actions: read
      attestations: write
      contents: read
      id-token: write
      packages: write
    needs: cache_kernel_coreos-testing_45
    with:
      akmods_target: common
      architecture: '["aarch64","x86_64"]'
      force: ${{ inputs.force || false }}
      kernel_cache_key: ${{ needs.cache_kernel_coreos-testing_45.outputs.KCKEY }}
      kernel_flavor: coreos-testing
      version: 45
  build-coreos-testing_45_nvidia-lts:
    name: Build nvidia-lts coreos-testing (45)
    uses: ./.github/workflows/reusable-build.yml
    secrets: inherit
    permissions:
      actions: read
      attestations: write
      contents: read
      id-token: write
      packages: write
    needs: cache_kernel_coreos-testing_45
    with:
      akmods_target: nvidia-lts
      architecture: '["aarch64","x86_64"]'
      force: ${{ inputs.force || false }}
      kernel_cache_key: ${{ needs.cache_kernel_coreos-testing_45.outputs.KCKEY }}
      kernel_flavor: coreos-testing
      version: 45
  build-coreos-testing_45_nvidia-open:
    name: Build nvidia-open coreos-testing (45)
    uses: ./.github/workflows/reusable-build.yml
    secrets: inherit
    permissions:
      actions: read
      attestations: write
      contents: read
      id-token: write
      packages: write
    needs: cache_kernel_coreos-testing_45
    with:
      akmods_target: nvidia-open
      architecture: '["aarch64","x86_64"]'
      force: ${{ inputs.force || false }}
      kernel_cache_key: ${{ needs.cache_kernel_coreos-testing_45.outputs.KCKEY }}
      kernel_flavor: coreos-testing
      version: 45
  build-coreos-testing_45_zfs:
    name: Build zfs coreos-testing (45)
    uses: ./.github/workflows/reusable-build.yml
    secrets: inherit
    permissions:
      actions: read
      attestations: write
      contents: read
      id-token: write
      packages: write
    needs: cache_kernel_coreos-testing_45
    with:
      akmods_target: zfs
      architecture: '["aarch64","x86_64"]'
      force: ${{ inputs.force || false }}
      kernel_cache_key: ${{ needs.cache_kernel_coreos-testing_45.outputs.KCKEY }}
      kernel_flavor: coreos-testing
      version: 45
  check-coreos-testing_45:
    name: Check coreos-testing (45)
    permissions:
      actions: read
      contents: read
    needs: [build-coreos-testing_45_common,build-coreos-testing_45_nvidia-lts,build-coreos-testing_45_nvidia-open,build-coreos-testing_45_zfs]
    runs-on: ubuntu-26.04
    if: always()
    steps:
      - name: Check for Build Failures
        if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
        run: exit 1

      - name: Exit if Success
        run: exit 0