forked from seanmiddleditch/libtelnet
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.1 KB
/
ci.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
name: CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
Build:
strategy:
matrix:
os: [ubuntu, windows, macOS]
config: [Debug, Release]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v1
- name: install dependencies
shell: bash
run: sudo apt-get install -y doxygen
if: runner.os == 'Linux'
- name: configure
shell: bash
run: mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX:PATH=~/.local -DCMAKE_BUILD_TYPE:STRING=${CONFIG} -DLIBTELNET_STRICT:BOOL=${STRICT}
env:
CONFIG: ${{ matrix.config }}
STRICT: NO
- name: make
shell: bash
run: cd build && cmake --build . --config ${CONFIG}
env:
CONFIG: ${{ matrix.config }}
- name: test
shell: bash
run: cd build/test && ctest . -C ${CONFIG}
env:
CONFIG: ${{ matrix.config }}
- name: dist
shell: bash
run: cd build && cpack -G TGZ
if: runner.os == 'Linux'