Skip to content

Commit

Permalink
CI: use latest GCC and clang
Browse files Browse the repository at this point in the history
latest compilers are a lot more strict. Simplifies workflow file.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 8, 2024
1 parent 217cec0 commit 54f4007
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,37 @@ jobs:

Ubuntu-gcc:
runs-on: ubuntu-latest
name: Linux-GCC${{matrix.cxx}}-deps=${{matrix.deps}}
name: Linux-GCC-deps=${{matrix.deps}}
strategy:
matrix:
cxx: ['11']
deps: ['enabled', 'disabled']
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/setup-gcc@1
version: latest
- name: Install packages
run: |
sudo apt install -y g++-${{matrix.cxx}}
python3 -m pip install meson 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" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Ubuntu-clang:
runs-on: ubuntu-latest
name: Linux-Clang${{matrix.cxx}}-deps=${{matrix.deps}}
name: Linux-Clang-deps=${{matrix.deps}}
strategy:
matrix:
cxx: ['14']
deps: ['enabled', 'disabled']
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/setup-clang@1
version: latest
- name: Install packages
run: |
sudo apt install -y clang-${{matrix.cxx}} libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev lld-${{matrix.cxx}}
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
meson compile -C "${{github.workspace}}/build" --verbose
Expand Down

0 comments on commit 54f4007

Please sign in to comment.