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,27 @@ 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
+ - run : |
49
+ # shellcheck disable=SC2046
50
+ c++ $(pkg-config --cflags ctre) -fsyntax-only -std=c++20 tests/ci.cpp
51
+ # shellcheck disable=SC2046
52
+ c++ $(pkg-config --cflags ctre) -fsyntax-only -std=c++20 tests/_unicode.cpp
40
53
clang :
41
54
strategy :
42
55
matrix :
54
67
- name : " Install libc++"
55
68
if : ${{ matrix.stdlib == 'libc++' }}
56
69
run : sudo apt-get install libc++abi-${{ matrix.clang }}-dev libc++1-${{ matrix.clang }} libc++-${{ matrix.clang }}-dev
57
- - uses : actions/checkout@v2
70
+ - uses : actions/checkout@v4
58
71
- run : c++ -v
59
72
- run : make CXX=c++ CXX_STANDARD=2a CXXFLAGS=-stdlib=${{ matrix.stdlib }}
60
73
if : ${{ matrix.standard == '20' }}
74
87
toolset : ${{ matrix.version }}
75
88
- name : " Install Ninja & CMake"
76
89
run : choco install ninja cmake
77
- - uses : actions/checkout@v2
90
+ - uses : actions/checkout@v4
78
91
- name : " Configure"
79
92
run : cmake . -G Ninja -B build -DCTRE_BUILD_TESTS=ON -DCTRE_CXX_STANDARD=20
80
93
- name : " Build"
0 commit comments