From ac66c1514f6eb04fe00da64e349893581bc5f956 Mon Sep 17 00:00:00 2001 From: uchenily Date: Mon, 20 May 2024 15:03:18 +0800 Subject: [PATCH] fix ci: linux --- .github/workflows/linux.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 33a24f5..49eb0a9 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -62,11 +62,17 @@ jobs: # chmod +x install-cmake.sh # ./install-cmake.sh --prefix=/usr/local --skip-license - - name: Build + - name: Build(clang) + if: matrix.config.compiler == 'clang' + run: | + meson setup build -Dbuildtype=${{ matrix.config.build_type }} --cross-file cross-clang.ini + meson compile -C build + + - name: Build(gcc) + if: matrix.config.compiler == 'gcc' run: | - CXX=${{ matrix.config.cxx }} meson setup build -Dbuildtype=${{ matrix.config.build_type }} + meson setup build -Dbuildtype=${{ matrix.config.build_type }} meson compile -C build - ./build/tests/gtests/all_gtests - name: Install run: |