-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1000 Bytes
/
native-build.yaml
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
name: Native Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
natvie-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [Release]
compiler: [gcc]
include:
- compiler: gcc
cpp_compiler: g++
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake build-essential libfftw3-dev libcurl4-openssl-dev ffmpeg cpplint
- name: Check cpplint
run: cpplint --recursive lib include
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }}
- name: Install Executable file
run: sudo make install -C build
- name: Test CLI
run: cd tests && ./test.sh 5