File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
14+ runs-on : ${{ matrix.runner }}
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ include :
19+ - name : " Linux x86_64 GCC"
20+ runner : ubuntu-latest
21+ arch : x86_64
22+ cc : gcc
23+ - name : " Linux x86_64 Clang"
24+ runner : ubuntu-latest
25+ arch : x86_64
26+ cc : clang
27+ - name : " Linux aarch64 GCC"
28+ runner : ubuntu-24.04-arm64
29+ arch : aarch64
30+ cc : gcc
31+ - name : " Linux aarch64 Clang"
32+ runner : ubuntu-24.04-arm64
33+ arch : aarch64
34+ cc : clang
35+
36+ name : ${{ matrix.name }}
1537
1638 steps :
1739 - uses : actions/checkout@v4
1840
41+ - name : Install Clang
42+ if : matrix.cc == 'clang'
43+ run : |
44+ sudo apt-get update
45+ sudo apt-get install -y clang
46+
1947 - name : Configure CMake
20- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
48+ run : |
49+ CC=${{ matrix.cc }} cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2150
2251 - name : Build
2352 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
53+
You can’t perform that action at this time.
0 commit comments