summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/macos.yml
blob: 81502d2da38f9197c9345fa6c5f1cbf8325c7f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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/