aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
blob: c40b65f71a81c751397e7c871bef860da2021e0c (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
name: linux
on: [push, pull_request]
jobs:
  build:
    name: build
    runs-on: [ubuntu-latest]
    steps:
      - name: Check out code
        uses: actions/checkout@v4

      - name: Install mbedTLS
        run: sudo apt-get install libmbedtls-dev

      - name: Install ninja
        run: sudo apt-get install ninja-build

      - name: Configure
        run: mkdir build && cd build && cmake -G Ninja -D NNG_ENABLE_TLS=ON ..

      - name: Build
        run: cd build && ninja

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