Skip to content

Commit 0d949af

Browse files
authored
Merge pull request #74 from erikzenker/feature/erikzenker/build-example-in-ci
feat: build and run example in ci
2 parents 901cae1 + 0ecafe6 commit 0d949af

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/example.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Example
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-16.04
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Install Dependencies
17+
run: sudo apt install cmake libboost-filesystem-dev libboost-test-dev gcc
18+
- name: Print System Information
19+
run: |
20+
cmake --version
21+
g++ --version
22+
cat /usr/include/boost/version.hpp
23+
- name: Build
24+
run: |
25+
export CXX=g++
26+
export CC=gcc
27+
mkdir build && cd build
28+
cmake ..
29+
cmake --build . --target inotify_example
30+
- name: Run example
31+
run: |
32+
./build/example/inotify_example

0 commit comments

Comments
 (0)