Skip to content

Various build updates #14

Various build updates

Various build updates #14

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 libtool googletest
echo "CPPFLAGS=-I$(brew --prefix)/include" >> $GITHUB_ENV
echo "LDFLAGS= -L$(brew --prefix)/lib" >> $GITHUB_ENV
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