Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CI workflow to build C++ code working #55

Merged
merged 4 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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