aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/darwin.yml
blob: 3c9ac30cad7248be29600be3d0fda0d77a01cf6f (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
name: darwin
on:
  push:
    paths-ignore: ["docs/**", "**.adoc", "**.md"]
  pull_request:
    paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
  build:
    name: build
    runs-on: [macos-latest]
    steps:
      - name: Check out code
        uses: actions/checkout@v4

      - name: Install Mbed TLS
        run: brew install mbedtls

      - name: Install ninja
        run: brew install ninja

      - name: Configure
        run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_TLS=ON ..

      - name: build
        run: cd build && ninja

      - name: Test
        run: cd build && ctest --output-on-failure