|
| 1 | +name: nvblox premerge |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | +jobs: |
| 5 | + ## ------------------------------------------ |
| 6 | + ## Linting and formatting |
| 7 | + ## ------------------------------------------ |
| 8 | + lint_precommit: |
| 9 | + name: pre-commit |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - name: Checkout Code |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + lfs: false |
| 16 | + - name: Set up Python |
| 17 | + uses: actions/setup-python@v5 |
| 18 | + with: |
| 19 | + python-version: '3.10' |
| 20 | + - name: Install pre-commit |
| 21 | + run: | |
| 22 | + python -m pip install --upgrade pip |
| 23 | + pip install pre-commit clang-format==14.0.6 |
| 24 | + - name: Run pre-commit |
| 25 | + run: pre-commit run --all-files --show-diff-on-failure |
| 26 | + ## ------------------------------------------ |
| 27 | + ## Build and test x86/CU11/U22 |
| 28 | + ## ------------------------------------------ |
| 29 | + premerge_x86_cu11_u22: |
| 30 | + name: Build&Test x86-CU11-U22 |
| 31 | + needs: [lint_precommit] |
| 32 | + runs-on: [self-hosted, gpu] # GPU jobs will run on AWS |
| 33 | + steps: |
| 34 | + - name: Checkout Code |
| 35 | + uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + lfs: true |
| 38 | + - name: premerge_x86_cu11_u22 - Unit tests |
| 39 | + uses: ./.github/actions/build-and-test |
| 40 | + with: |
| 41 | + platform: x86_64 |
| 42 | + cuda-version: '11' |
| 43 | + ubuntu-version: '22' |
| 44 | + ngc-api-key: ${{ secrets.NGC_API_KEY }} |
| 45 | + ## ------------------------------------------ |
| 46 | + ## Build and test x86/CU12/U22 |
| 47 | + ## ------------------------------------------ |
| 48 | + premerge_x86_cu12_u22: |
| 49 | + name: Build&Test x86-CU12-U22 |
| 50 | + needs: [lint_precommit] |
| 51 | + runs-on: [self-hosted, gpu] # GPU jobs will run on AWS |
| 52 | + steps: |
| 53 | + - name: Checkout Code |
| 54 | + uses: actions/checkout@v4 |
| 55 | + with: |
| 56 | + lfs: true |
| 57 | + - name: premerge_x86_cu12_u22 - Unit tests |
| 58 | + uses: ./.github/actions/build-and-test |
| 59 | + with: |
| 60 | + platform: x86_64 |
| 61 | + cuda-version: '12' |
| 62 | + ubuntu-version: '22' |
| 63 | + ngc-api-key: ${{ secrets.NGC_API_KEY }} |
| 64 | + ## ------------------------------------------ |
| 65 | + ## Build and test x86/CU13/U24 |
| 66 | + ## ------------------------------------------ |
| 67 | + premerge_x86_cu13_u24: |
| 68 | + name: Build&Test x86-CU13-U24 |
| 69 | + needs: [lint_precommit] |
| 70 | + runs-on: [self-hosted, gpu] # GPU jobs will run on AWS |
| 71 | + steps: |
| 72 | + - name: Checkout Code |
| 73 | + uses: actions/checkout@v4 |
| 74 | + with: |
| 75 | + lfs: true |
| 76 | + - name: premerge_x86_cu13_u24 - Unit tests |
| 77 | + uses: ./.github/actions/build-and-test |
| 78 | + with: |
| 79 | + platform: x86_64 |
| 80 | + cuda-version: '13' |
| 81 | + ubuntu-version: '24' |
| 82 | + ngc-api-key: ${{ secrets.NGC_API_KEY }} |
| 83 | + run-realsense-tests: false # TODO(dtingahl) make realsense docker build for cuda13 |
| 84 | + ## -------------------------------------------------------- |
| 85 | + ## Build and test x86/CU12/U22/gcc-sanitizer |
| 86 | + ## -------------------------------------------------------- |
| 87 | + premerge_x86_cu12_u22_debug: |
| 88 | + name: Build&Test x86-gcc-sanitizer |
| 89 | + needs: [lint_precommit] |
| 90 | + runs-on: [self-hosted, gpu] # GPU jobs will run on AWS |
| 91 | + steps: |
| 92 | + - name: Checkout Code |
| 93 | + uses: actions/checkout@v4 |
| 94 | + with: |
| 95 | + lfs: true |
| 96 | + - name: premerge_x86_cu12_u22_debug - Unit tests |
| 97 | + uses: ./.github/actions/build-and-test |
| 98 | + with: |
| 99 | + platform: x86_64 |
| 100 | + cuda-version: '12' |
| 101 | + ubuntu-version: '22' |
| 102 | + gcc-sanitizer: 1 |
| 103 | + ngc-api-key: ${{ secrets.NGC_API_KEY }} |
| 104 | + run-python-tests: false # TODO(dtingdahl) Enable these tests |
| 105 | + run-realsense-tests: false # |
| 106 | + run-cuda-sanitizer: false # |
0 commit comments