Skip to content

Trigger Nightly cuOpt Pipeline #276

Trigger Nightly cuOpt Pipeline

Trigger Nightly cuOpt Pipeline #276

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Trigger Nightly cuOpt Pipeline
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *" # 5am UTC / 1am EST
jobs:
trigger-nightly-builds-and-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
cuopt_branch:
- "main"
- "release/25.12"
steps:
- uses: actions/checkout@v4
- name: Trigger Pipeline
env:
GH_TOKEN: ${{ github.token }}
CUOPT_BRANCH: ${{ matrix.cuopt_branch }}
run: |
export DATE=$(date +%F)
export SHA=$(gh api -q '.commit.sha' "repos/nvidia/cuopt/branches/${CUOPT_BRANCH}")
# NOTE: '--ref' is the branch to pull the workflow file from, 'branch' input is the branch
# to pull the actual cuOpt source code from
gh workflow run build.yaml \
--repo NVIDIA/cuopt \
--ref "${CUOPT_BRANCH}" \
-f branch="${CUOPT_BRANCH}" \
-f build_type=nightly \
-f date="${DATE}" \
-f sha="${SHA}" \
-f trigger-tests="true"