summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 32f92739d0a591381f41efe9f4b2cefb0be2e68c (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
name: test

on:
  push:
    branches: [ "main", "dev" ]
  pull_request:
    branches: [ "main", "dev" ]

env:
  BUILD_TYPE: Release

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        submodules: true

    - name: patch to libssh
      run: patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch

    # TODO: just building docker does not require libssh. fix CMakeLists
    - name: install build dependency
      run: |
        sudo apt-get update
        sudo ./scripts/install-build-deps.sh

    - name: configure CMake
      run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

    - name: Build Containers
      run: make -C ${{github.workspace}}/build docker-build-all

    - name: Run Test
      run: make -C ${{github.workspace}}/build docker-test-all