Skip to content

Commit 6f29c4c

Browse files
committed
Actually compile with Clang.
1 parent 0f591b4 commit 6f29c4c

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,33 @@ jobs:
2626

2727
gcc:
2828
runs-on: 'ubuntu-latest'
29-
strategy:
30-
matrix:
31-
cxx: [gcc, clang]
32-
name: ${{ matrix.cxx }}
3329
env:
34-
CXX: ${{ matrix.cxx }}
30+
CXX: g++-12
31+
CC: gcc-12
3532
steps:
3633
- uses: actions/checkout@v4
3734
- name: CMake
3835
run: |
3936
sudo apt-get update
40-
sudo apt-get install libhdf5-dev g++-12
41-
CXX=g++-12 cmake -B build
37+
sudo apt-get install libhdf5-dev $CXX $CC
38+
cmake -B build
39+
- name: Build
40+
run: VERBOSE=true make -C build -j `nproc`
41+
- name: Test
42+
run: ctest --test-dir ./build/test/bash
43+
44+
clang:
45+
runs-on: 'ubuntu-latest'
46+
env:
47+
CXX: clang++
48+
CC: clang
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: CMake
52+
run: |
53+
sudo apt-get update
54+
sudo apt-get install libhdf5-dev clang
55+
cmake -B build
4256
- name: Build
4357
run: VERBOSE=true make -C build -j `nproc`
4458
- name: Test

0 commit comments

Comments
 (0)