Skip to content

Commit 6465524

Browse files
committed
Add macOS & cmake builds to workflow
1 parent b33e00b commit 6465524

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,35 @@ name: Build
22
on:
33
workflow_dispatch:
44
pull_request:
5-
push:
65

76
jobs:
87
build:
9-
runs-on: ubuntu-latest
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
build-system:
13+
- autotools
14+
- cmake
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
1018
steps:
1119
- uses: actions/checkout@v6
1220
- name: Install dependencies
1321
run: |
14-
sudo apt-get install -y libgtest-dev
22+
if test ${{ matrix.os }} = ubuntu-latest
23+
then sudo apt-get install -y libgtest-dev
24+
else brew install autoconf
25+
fi
1526
- name: Build and check memtailor
1627
run: |
17-
mkdir BUILD
18-
cd BUILD
19-
../autogen.sh
20-
../configure
21-
make distcheck
28+
mkdir build-dir
29+
cd build-dir
30+
if test ${{ matrix.build-system }} = autotools
31+
then ../autogen.sh
32+
../configure
33+
make distcheck
34+
else cmake -B. -S.. -GNinja
35+
ninja
36+
fi

0 commit comments

Comments
 (0)