From 11a8409c116bc661ff1fe38ebe53edd0479ab801 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 19 Oct 2023 16:11:39 -0700 Subject: [PATCH] meson: simplify CI Signed-off-by: Rosen Penev --- .github/workflows/on_PR_meson.yaml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/on_PR_meson.yaml b/.github/workflows/on_PR_meson.yaml index ec7b0623d5..fa7988064c 100644 --- a/.github/workflows/on_PR_meson.yaml +++ b/.github/workflows/on_PR_meson.yaml @@ -12,19 +12,16 @@ jobs: name: Linux-GCC${{matrix.cxx}}-deps=${{matrix.deps}} strategy: matrix: - cxx: ['7', '10'] + cxx: ['7', '11'] deps: ['enabled', 'disabled'] steps: - uses: actions/checkout@v4 - - uses: awalsh128/cache-apt-pkgs-action@v1 + - uses: egor-tensin/setup-gcc@v1 with: - packages: g++-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev libinih-dev libgmock-dev libgtest-dev gettext ninja-build - version: 1.0 + version: ${{matrix.cxx}} - name: Install meson - run: python3 -m pip install meson==0.54.1 + run: python3 -m pip install meson==0.54.1 ninja - name: Compile and Test - env: - CXX: g++-${{matrix.cxx}} run: | meson setup "${{github.workspace}}/build" -Dauto_features=${{matrix.deps}} -Dwarning_level=3 meson compile -C "${{github.workspace}}/build" @@ -34,21 +31,18 @@ jobs: name: Linux-Clang${{matrix.cxx}}-deps=${{matrix.deps}} strategy: matrix: - cxx: ['7', '12'] + cxx: ['6.0', '17'] deps: ['enabled', 'disabled'] steps: - uses: actions/checkout@v4 - - uses: awalsh128/cache-apt-pkgs-action@v1 + - uses: egor-tensin/setup-gcc@v1 with: - packages: clang-${{matrix.cxx}} libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev lld-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev gettext ninja-build - version: 1.0 + version: ${{matrix.cxx}} - name: Install meson - run: python3 -m pip install meson + run: python3 -m pip install meson ninja - name: Compile and Test env: - CXX: clang++-${{matrix.cxx}} CXXFLAGS: -stdlib=libc++ - CXX_LD: lld-${{matrix.cxx}} run: | meson setup "${{github.workspace}}/build" -Dauto_features=${{matrix.deps}} -Dwarning_level=3 -Dcpp_std=c++20 meson compile -C "${{github.workspace}}/build" --verbose @@ -175,5 +169,5 @@ jobs: uses: mymindstorm/setup-emsdk@v12 - name: Compile run: | - meson setup "${{github.workspace}}/build" --cross-file="${{github.workspace}}/em.txt" --wrap-mode=forcefallback -Ddefault_library=static -Dwarning_level=3 -Dcpp_std=c++20 -DunitTests=disabled + meson setup "${{github.workspace}}/build" --cross-file="${{github.workspace}}/em.txt" --wrap-mode=forcefallback -Ddefault_library=static -Dwarning_level=3 -Dcpp_std=c++20 -DunitTests=disabled -Dcurl:tests=disabled meson compile -C "${{github.workspace}}/build" --verbose