steps:
  - label: ":moneybag: Enforce daily budget"
    command: "tests/buildkite/enforce_daily_budget.sh"
    key: enforce-daily-budget
    agents:
      queue: pipeline-loader
  - wait
  - block: ":rocket: Run this test job"
    if: build.pull_request.id != null || build.branch =~ /^dependabot\//
  #### -------- BUILD --------
  - label: ":windows: Build XGBoost for Windows with CUDA"
    command: "tests/buildkite/build-win64-gpu.ps1"
    key: build-win64-gpu
    agents:
      queue: windows-cpu

  - wait

  #### -------- TEST --------
  - label: ":windows: Test XGBoost on Windows"
    command: "tests/buildkite/test-win64-gpu.ps1"
    key: test-win64-gpu
    agents:
      queue: windows-gpu
