Skip to content

Various build updates #9

Various build updates

Various build updates #9

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build-system:
- autotools
- cmake
os:
- macos-latest
- ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
if test ${{ matrix.os }} = ubuntu-latest
then sudo apt-get install -y libgtest-dev
else brew install autoconf automake
fi
- name: Build and check memtailor
run: |
mkdir build-dir
cd build-dir
if test ${{ matrix.build-system }} = autotools
then ../autogen.sh
../configure
make distcheck
else cmake -B. -S.. -GNinja
ninja
fi