Skip to content

Commit

Permalink
Merge pull request #55 from ReproNim/bf-c++
Browse files Browse the repository at this point in the history
Make CI workflow to build C++ code working
  • Loading branch information
yarikoptic authored Sep 11, 2023
2 parents 52a7bb2 + 55e80e5 commit cfd1ac0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./C++
- name: make
run: make
# - name: make check
# run: make check
# - name: make distcheck
# run: make distcheck
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install build dependencies
run: sudo apt install -y libyaml-cpp-dev libasound2-dev libv4l-dev libudev-dev make g++

- name: Build
run: make
working-directory: Capture/C++

- name: Dry run of -h
run: ./VideoCapture -h
working-directory: Capture/C++
1 change: 1 addition & 0 deletions Capture/C++/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CFLAGS += -O0 \
-Wno-missing-field-initializers \
-fPIC \
-std=c++11 \
-g \
$(LOCAL_CFLAGS) \


Expand Down
2 changes: 1 addition & 1 deletion Capture/C++/VideoCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int main(int argc, char* argv[]){
break;
case 'h':
cout << helpstr << endl;
return 55;
return 0;
}
}

Expand Down

0 comments on commit cfd1ac0

Please sign in to comment.