Skip to content

Commit 246c91b

Browse files
committed
CI: try to run cmake on more platforms, including linux-aarch64
1 parent 50ad4b7 commit 246c91b

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,43 @@ env:
1111

1212
jobs:
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+

0 commit comments

Comments
 (0)