Skip to content

Commit

Permalink
meson: simplify CI
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Oct 19, 2023
1 parent 5ac55c8 commit 11a8409
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/on_PR_meson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 11a8409

Please sign in to comment.