10
10
name : " AppleClang (MacOS ${{ matrix.macos }}, C++${{ matrix.standard }})"
11
11
runs-on : macos-${{ matrix.macos }}
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
- run : c++ -v
15
15
- run : make CXX=c++ CXX_STANDARD=2a
16
16
if : ${{ matrix.standard == '20' }}
@@ -29,14 +29,28 @@ jobs:
29
29
uses : egor-tensin/setup-gcc@v1
30
30
with :
31
31
version : ${{ matrix.gcc }}
32
- - uses : actions/checkout@v2
32
+ - uses : actions/checkout@v4
33
33
- run : c++ -v
34
34
- run : make CXX=c++ CXX_STANDARD=2a
35
35
if : ${{ matrix.standard == '20' }}
36
36
- run : make CXX=c++ CXX_STANDARD=17
37
37
if : ${{ matrix.gcc < '9' && matrix.standard == '17' }}
38
38
- run : make CXX=c++ CXX_STANDARD=17 CXXFLAGS=-DCTRE_ENABLE_LITERALS PEDANTIC=""
39
39
if : ${{ matrix.gcc >= '9' && matrix.standard == '17' }}
40
+ meson :
41
+ name : " Meson package test"
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v4
45
+ - run : pipx install meson
46
+ - run : meson setup build --prefix=/usr
47
+ - run : sudo ninja -C build install
48
+ - name : Run compilation tests
49
+ run : |
50
+ # shellcheck disable=SC2046
51
+ c++ $(pkg-config --cflags ctre) -fsyntax-only -std=c++20 tests/ci.cpp
52
+ # shellcheck disable=SC2046
53
+ c++ $(pkg-config --cflags ctre) -fsyntax-only -std=c++20 tests/_unicode.cpp
40
54
clang :
41
55
strategy :
42
56
matrix :
54
68
- name : " Install libc++"
55
69
if : ${{ matrix.stdlib == 'libc++' }}
56
70
run : sudo apt-get install libc++abi-${{ matrix.clang }}-dev libc++1-${{ matrix.clang }} libc++-${{ matrix.clang }}-dev
57
- - uses : actions/checkout@v2
71
+ - uses : actions/checkout@v4
58
72
- run : c++ -v
59
73
- run : make CXX=c++ CXX_STANDARD=2a CXXFLAGS=-stdlib=${{ matrix.stdlib }}
60
74
if : ${{ matrix.standard == '20' }}
74
88
toolset : ${{ matrix.version }}
75
89
- name : " Install Ninja & CMake"
76
90
run : choco install ninja cmake
77
- - uses : actions/checkout@v2
91
+ - uses : actions/checkout@v4
78
92
- name : " Configure"
79
93
run : cmake . -G Ninja -B build -DCTRE_BUILD_TESTS=ON -DCTRE_CXX_STANDARD=20
80
94
- name : " Build"
0 commit comments