diff options
author | Paul Spooren <mail@aparcar.org> | 2022-03-20 13:56:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-03-21 00:26:44 +0100 |
commit | 753dea91bcfecb82fb5db646e72c9a022d2d2cbf (patch) | |
tree | 46e2461a60eff9c334d05c2244aa0abab8a82c04 /.github/workflows/macos.yml | |
parent | 718dfbda7d58308054ec7c6d9340751e97811d5d (diff) |
CI: build on macOS
Build minimal version to detect compile issues.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..81502d2 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,37 @@ +name: Build on macOS + +on: [ push, pull_request ] + +jobs: + build: + name: Build + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup + run: | + brew install json-c + + - name: Build minimal version + run: | + mkdir build + cd build + cmake \ + -D NL80211_SUPPORT=OFF \ + -D RTNL_SUPPORT=OFF \ + -D UBUS_SUPPORT=OFF \ + -D UCI_SUPPORT=OFF \ + -D ULOOP_SUPPORT=OFF \ + .. + make + + - name: Upload build artifacts + uses: actions/upload-artifact@v2 + if: failure() + with: + name: minimal-build + if-no-files-found: ignore + path: | + build/ |