🔧 Add meson build to CI

This commit is contained in:
Vladislav Nepogodin 2023-08-13 22:18:20 +00:00 committed by GitHub
parent 234da45c32
commit 9bdecd8344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,12 +11,12 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: env:
BUILD_TYPE: Debug BUILD_TYPE: debug
CTEST_OUTPUT_ON_FAILURE: 1 CTEST_OUTPUT_ON_FAILURE: 1
jobs: jobs:
build: build-cmake:
name: Build name: Build with CMake
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: archlinux:base-devel container: archlinux:base-devel
steps: steps:
@ -39,8 +39,8 @@ jobs:
./tests/test-initcpio ./tests/test-initcpio
./tests/test-pacmanconf ./tests/test-pacmanconf
shell: bash shell: bash
build_withoutdev: build-cmake_withoutdev:
name: Build (DEVENV OFF) name: Build with CMake (DEVENV OFF)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: archlinux:base-devel container: archlinux:base-devel
steps: steps:
@ -60,3 +60,46 @@ jobs:
run: | run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
shell: bash 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