-
-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (49 loc) · 2.14 KB
/
cmake-linux-arm64.yml
File metadata and controls
58 lines (49 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CMake on Linux (ARM64)
on:
#push:
# branches: [ $default-branch ]
pull_request:
branches: ["LTS-C*"]
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: ""
- host_compiler: "clang++-21"
cuda_toolkit: "12.9"
cuda_ldpath: ""
- host_compiler: "g++-11"
cuda_toolkit: "13.2"
cuda_ldpath: "/home/cudeiro/cuda-compat-orin/extracted/usr/local/cuda-13.2/compat_orin"
- host_compiler: "clang++-21"
cuda_toolkit: "13.2"
cuda_ldpath: "/home/cudeiro/cuda-compat-orin/extracted/usr/local/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 "PATH=/home/cudeiro/cmake-4.2.1-linux-aarch64/bin/:$PATH" >> "$GITHUB_ENV"
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=${{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