-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.29 KB
/
cpp-build.yml
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
44
45
46
47
48
49
50
51
52
53
54
name: "C++ Build"
on:
push:
paths-ignore:
- 'README.md'
jobs:
build:
name: "gcc/clang build"
runs-on: ubuntu-latest
strategy:
matrix:
cpp17_compatibility: [ "ON", "OFF" ]
cpp_compiler: [ "g++", "clang++" ]
steps:
- uses: actions/checkout@v3
- uses: jirutka/setup-alpine@v1
with:
branch: v3.19
- name: Install dependencies
run: |
sudo apk update
sudo apk add \
cmake \
gcc \
clang \
boost-filesystem \
boost-python3 \
lua-dev \
fmt \
gmock \
gtest
- name: Execute cmake
run: |
CXX=/usr/bin/${{ matrix.cpp_compiler }} \
cmake . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DPPPLUGIN_SHARED=ON \
-DPPPLUGIN_ENABLE_EXAMPLES=ON \
-DPPPLUGIN_ENABLE_TESTS=ON \
-DPPPLUGIN_ENABLE_CPP17_COMPATIBILITY=${{ matrix.cpp17_compatibility }}
shell: alpine.sh {0}
- name: Execute make
run: |
cd build
make -j
shell: alpine.sh {0}
- name: Install
run: |
cd build
make install
shell: alpine.sh {0}