aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci-macos.yml
blob: 83f3253761a9ef2e659067a9984fb49f6e917458 (about) (plain) (blame)
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
38
39
40
41
42
43
44
name: macOS CI
on:
  - pull_request
  - push
jobs:
  build:
    runs-on: macos-latest
    env:
      CXXFLAGS: -I/usr/local/opt/openssl@1.1/include -Wno-error=deprecated-declarations
      INSPIRCD_DEBUG: 3
      INSPIRCD_VERBOSE: 1
      LDFLAGS: -L/usr/local/opt/openssl@1.1/lib
      PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig
    steps:
      - uses: actions/checkout@v2
      - name: Install dependencies
        run: |
          brew update || true
          for PACKAGE in pkg-config argon2 gnutls libmaxminddb libpq mbedtls mysql-client openssl@1.1 pcre re2 sqlite tre;
          do
            brew install $PACKAGE || brew upgrade $PACKAGE
          done
          brew link --force --overwrite libpq
          brew link --force --overwrite mysql-client
      - name: Run configure
        run: |
          ./configure --enable-extras "argon2 geo_maxmind ldap mysql pgsql regex_pcre regex_posix regex_re2 regex_tre sqlite3 ssl_gnutls ssl_mbedtls ssl_openssl sslrehashsignal"
          ./configure --development --disable-auto-extras --socketengine ${{ matrix.socketengine }}
      - name: Build core
        run: |
          INSPIRCD_TARGET=inspircd make --jobs $(($(sysctl -n hw.activecpu) + 1))
      - name: Build modules
        run: |
          INSPIRCD_TARGET=modules make --jobs $(($(sysctl -n hw.activecpu) + 1))
      - name: Install
        run: |
          make install
    strategy:
      fail-fast: false
      matrix:
        socketengine:
          - kqueue
          - poll
          - select