]> the.earth.li Git - onak.git/blob - .github/workflows/build-test.yml
Ensure our apt lists are current in the GitHub Action
[onak.git] / .github / workflows / build-test.yml
1 name: onak build test
2
3 on:
4   push:
5     branches: [ main ]
6   pull_request:
7     branches: [ main ]
8
9 jobs:
10   build:
11
12     runs-on: ubuntu-latest
13
14     steps:
15     - uses: actions/checkout@v3
16
17     - name: Update apt lists
18       run: sudo apt update
19
20     - name: Install build dependencies
21       run: sudo apt install libcurl4-gnutls-dev libdb-dev libsystemd-dev nettle-dev pkg-config
22
23     - name: Configure CMake
24       run: cmake -B ${{github.workspace}}/build
25
26     - name: Build
27       run: cmake --build ${{github.workspace}}/build
28
29     - name: Test
30       working-directory: ${{github.workspace}}/build
31       run: ctest