File tree Expand file tree Collapse file tree 1 file changed +23
-8
lines changed
Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,35 @@ name: Build
22on :
33 workflow_dispatch :
44 pull_request :
5- push :
65
76jobs :
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
You can’t perform that action at this time.
0 commit comments