Skip to content

Commit 36014f3

Browse files
committed
ci: add meson packaging tests
1 parent ace762f commit 36014f3

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/tests.yml

+17-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
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,27 @@ 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+
- 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
4053
clang:
4154
strategy:
4255
matrix:
@@ -54,7 +67,7 @@ jobs:
5467
- name: "Install libc++"
5568
if: ${{ matrix.stdlib == 'libc++' }}
5669
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
5871
- run: c++ -v
5972
- run: make CXX=c++ CXX_STANDARD=2a CXXFLAGS=-stdlib=${{ matrix.stdlib }}
6073
if: ${{ matrix.standard == '20' }}
@@ -74,7 +87,7 @@ jobs:
7487
toolset: ${{ matrix.version }}
7588
- name: "Install Ninja & CMake"
7689
run: choco install ninja cmake
77-
- uses: actions/checkout@v2
90+
- uses: actions/checkout@v4
7891
- name: "Configure"
7992
run: cmake . -G Ninja -B build -DCTRE_BUILD_TESTS=ON -DCTRE_CXX_STANDARD=20
8093
- name: "Build"

0 commit comments

Comments
 (0)