add cuda 13.2 to jetson arm64 builds (main) #478
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake on Linux (ARM64) | |
| on: | |
| #push: | |
| # branches: [ $default-branch ] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: [self-hosted, linux, arm64] | |
| strategy: | |
| # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. | |
| #Consider changing this to true when your workflow is stable. | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - host_compiler: "g++-11" | |
| cuda_toolkit: "12.9" | |
| cuda_ldpath: "cuda-12.9" | |
| - host_compiler: "clang++-21" | |
| cuda_toolkit: "12.9" | |
| cuda_ldpath: "cuda-12.9" | |
| - host_compiler: "g++-11" | |
| cuda_toolkit: "13.2" | |
| cuda_ldpath: "cuda-13.2/compat_orin" | |
| - host_compiler: "clang++-21" | |
| cuda_toolkit: "13.2" | |
| cuda_ldpath: "cuda-13.2/compat_orin" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set reusable strings | |
| # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. | |
| id: strings | |
| run: | | |
| echo "build-output-dir=${{github.workspace}}/build" >> "$GITHUB_OUTPUT" | |
| echo "$HOME/cmake-4.2.1-linux-aarch64/bin/" >> "$GITHUB_PATH" | |
| echo "CUDACXX=/usr/local/cuda-${{matrix.cuda_toolkit}}/bin/nvcc" >> "$GITHUB_ENV" | |
| echo "CC=${{matrix.host_compiler}}" >> "$GITHUB_ENV" | |
| echo "CXX=${{matrix.host_compiler}}" >> "$GITHUB_ENV" | |
| echo "LD_LIBRARY_PATH=/usr/local/${{matrix.cuda_ldpath}}:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" | |
| - name: Configure CMake | |
| run: | | |
| cmake -G "Ninja" -B ${{steps.strings.outputs.build-output-dir}} -DCMAKE_BUILD_TYPE="Release" -S ${{github.workspace}} | |
| - name: Build | |
| run: | | |
| cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release | |
| - name: Test | |
| working-directory: ${{ steps.strings.outputs.build-output-dir }} | |
| run: | | |
| ctest --build-config Release --output-junit test_results.xml |