Skip to content

ci: ubuntu: compile & test on (Clang, libc++, lld) trio too #179

ci: ubuntu: compile & test on (Clang, libc++, lld) trio too

ci: ubuntu: compile & test on (Clang, libc++, lld) trio too #179

name: Build-Test ZeCalculator Ubuntu
on:
push:
workflow_dispatch:
jobs:
build-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout ZeCalculator
uses: actions/checkout@v3
- name: Install meson and ninja
run: sudo apt install meson ninja-build
- name: Setup meson build folder (GCC)
run: meson setup build -D test=true -D b_sanitize=address,undefined
- name: Setup meson build folder (Clang)
run: CXX=clang++-18 CXX_LD=lld meson setup build-clang -D test=true -D b_sanitize=address,undefined -D cpp_args='-pipe -stdlib=libc++' -D cpp_link_args='-stdlib=libc++'
- name: Compile code (GCC)
run: cd build && meson compile
- name: Compile code (Clang)
run: cd build-clang && meson compile
- name: Test code (GCC)
run: cd build && meson test
- name: Test code (Clang)
run: cd build-clang && meson test