summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Wiberg <troglobit@gmail.com>2021-07-20 18:02:20 +0200
committerJoachim Wiberg <troglobit@gmail.com>2021-07-20 18:02:20 +0200
commitbbf22f88f83816f2fc14b8d4bf07d3d77016d00f (patch)
tree62e467f1205607c86ec1d24c389a98de1ab6fda0
parentc5dcf0ff1fda1e4998f23eb70f1a7ee2602f9b22 (diff)
downloadlibnet-bbf22f88f83816f2fc14b8d4bf07d3d77016d00f.tar.gz
.github: attempt to add macos to build matrix
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
-rw-r--r--.github/workflows/build.yml28
1 files changed, 22 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ce42aff..ea29c46 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,21 +11,37 @@ env:
jobs:
build:
- # Verify we can build on latest Ubuntu with both gcc and clang
- name: ${{ matrix.compiler }}
strategy:
matrix:
- compiler: [gcc, clang]
- runs-on: ubuntu-latest
+ name: [ ubuntu-latest-gcc, ubuntu-latest-clang, macos-latest-clang ]
+ include:
+ - name: ubuntu-latest-gcc
+ os: ubuntu-latest
+ cc: gcc
+ - name: ubuntu-latest-clang
+ os: ubuntu-latest
+ cc: clang
+ - name: macos-latest-clang
+ os: macos-latest
+ cc: clang
+
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- - name: Installing dependencies
+ - name: Install MacOS dependencies
+ if: startsWith(matrix.os,'macos')
+ run: |
+ brew update
+ brew install automake autoconf doxygen
+ - name: Install Linux dependencies
+ if: startsWith(matrix.os,'ubuntu')
run: |
+ sudo apt-get update
sudo apt-get install -y build-essential autoconf automake clang tree doxygen
- name: Configure
run: |
./autogen.sh
- ./configure --prefix=/usr CC=${{ matrix.compiler }}
+ ./configure --prefix=/usr CC=${{ matrix.cc }}
- name: Build
run: |
make V=1