Skip to content

Commit

Permalink
Merge pull request #74 from erikzenker/feature/erikzenker/build-examp…
Browse files Browse the repository at this point in the history
…le-in-ci

feat: build and run example in ci
  • Loading branch information
erikzenker committed Aug 31, 2020
2 parents 901cae1 + 0ecafe6 commit 0d949af
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Example

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-16.04

steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt install cmake libboost-filesystem-dev libboost-test-dev gcc
- name: Print System Information
run: |
cmake --version
g++ --version
cat /usr/include/boost/version.hpp
- name: Build
run: |
export CXX=g++
export CC=gcc
mkdir build && cd build
cmake ..
cmake --build . --target inotify_example
- name: Run example
run: |
./build/example/inotify_example

0 comments on commit 0d949af

Please sign in to comment.