From 9bdecd834497cac7e9da4c3b0850e2ce616afa54 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sun, 13 Aug 2023 22:18:20 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20meson=20build=20to=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 53 +++++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a93626e..e20af6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,12 +11,12 @@ concurrency: cancel-in-progress: true env: - BUILD_TYPE: Debug + BUILD_TYPE: debug CTEST_OUTPUT_ON_FAILURE: 1 jobs: - build: - name: Build + build-cmake: + name: Build with CMake runs-on: ubuntu-latest container: archlinux:base-devel steps: @@ -39,8 +39,8 @@ jobs: ./tests/test-initcpio ./tests/test-pacmanconf shell: bash - build_withoutdev: - name: Build (DEVENV OFF) + build-cmake_withoutdev: + name: Build with CMake (DEVENV OFF) runs-on: ubuntu-latest container: archlinux:base-devel steps: @@ -60,3 +60,46 @@ jobs: run: | cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} shell: bash + build-meson: + name: Build with Meson + runs-on: ubuntu-latest + container: archlinux:base-devel + steps: + - uses: actions/checkout@v3 + + - name: install deps + run: | + pacman -Syu --noconfirm pkg-config ninja meson clang mold llvm git + shell: bash + + - name: Configure Meson + run: meson setup --buildtype=${{env.BUILD_TYPE}} -Dbuild_tests=true ${{github.workspace}}/build + + - name: Build & Test + # Build your program with the given configuration + run: | + meson compile -C ${{github.workspace}}/build + cd ${{github.workspace}}/build + ./tests/test-initcpio + ./tests/test-pacmanconf + shell: bash + build-meson_withoutdev: + name: Build with Meson (DEVENV OFF) + runs-on: ubuntu-latest + container: archlinux:base-devel + steps: + - uses: actions/checkout@v3 + + - name: install deps + run: | + pacman -Syu --noconfirm pkg-config ninja meson clang mold llvm git + shell: bash + + - name: Configure CMake + run: meson setup --buildtype=${{env.BUILD_TYPE}} -Dbuild_tests=true -Ddevenv=false ${{github.workspace}}/build + + - name: Build + # Build your program with the given configuration + run: | + meson compile -C ${{github.workspace}}/build + shell: bash