Skip to content

Dtingdahl/ci script

Dtingdahl/ci script #8

Workflow file for this run

name: nvblox premerge
on:
pull_request:
jobs:
gpu-job:
name: Premerge
runs-on: [self-hosted, gpu] # GPU jobs will run on AWS
steps:
- name: NGC Login
shell: sh
run: |
# Only attempt NGC login if API key is available
if [ -n "${{ env.NGC_API_KEY }}" ]; then
echo "Logging into NGC registry..."
docker login -u \$oauthtoken -p ${{ env.NGC_API_KEY }} nvcr.io
echo "✅ Successfully logged into NGC registry"
else
echo "⚠️ NGC_API_KEY not available - skipping NGC login"
echo "This is normal for PRs from forks or when secrets are not configured"
fi
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: cpp-unit-tests x86_64-Cuda12-Ubuntu22
run: |
ci/premerge.py --platform x86_64 --cuda-version 12 --ubuntu-version 22 --build-and-test cpp