Create c-cpp.yml

This commit is contained in:
木头云 2021-06-20 23:40:47 +08:00 committed by GitHub
parent ef2988b6e1
commit bf4aa18377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
.github/workflows/c-cpp.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: C/C++ CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -DCMAKE_BUILD_TYPE=Release -DLIBIPC_BUILD_TESTS=ON .
- name: make
run: make -j
- name: test
run: export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH && ./bin/test-ipc