1010 name : " AppleClang (MacOS ${{ matrix.macos }}, C++${{ matrix.standard }})"
1111 runs-on : macos-${{ matrix.macos }}
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 - run : c++ -v
1515 - run : make CXX=c++ CXX_STANDARD=2a
1616 if : ${{ matrix.standard == '20' }}
@@ -29,14 +29,28 @@ jobs:
2929 uses : egor-tensin/setup-gcc@v1
3030 with :
3131 version : ${{ matrix.gcc }}
32- - uses : actions/checkout@v2
32+ - uses : actions/checkout@v4
3333 - run : c++ -v
3434 - run : make CXX=c++ CXX_STANDARD=2a
3535 if : ${{ matrix.standard == '20' }}
3636 - run : make CXX=c++ CXX_STANDARD=17
3737 if : ${{ matrix.gcc < '9' && matrix.standard == '17' }}
3838 - run : make CXX=c++ CXX_STANDARD=17 CXXFLAGS=-DCTRE_ENABLE_LITERALS PEDANTIC=""
3939 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
4054 clang :
4155 strategy :
4256 matrix :
5468 - name : " Install libc++"
5569 if : ${{ matrix.stdlib == 'libc++' }}
5670 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
5872 - run : c++ -v
5973 - run : make CXX=c++ CXX_STANDARD=2a CXXFLAGS=-stdlib=${{ matrix.stdlib }}
6074 if : ${{ matrix.standard == '20' }}
7488 toolset : ${{ matrix.version }}
7589 - name : " Install Ninja & CMake"
7690 run : choco install ninja cmake
77- - uses : actions/checkout@v2
91+ - uses : actions/checkout@v4
7892 - name : " Configure"
7993 run : cmake . -G Ninja -B build -DCTRE_BUILD_TESTS=ON -DCTRE_CXX_STANDARD=20
8094 - name : " Build"
0 commit comments