diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 3518271..2e690cb 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -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++ diff --git a/Capture/C++/Makefile b/Capture/C++/Makefile index f34bad2..b6b961c 100644 --- a/Capture/C++/Makefile +++ b/Capture/C++/Makefile @@ -16,6 +16,7 @@ CFLAGS += -O0 \ -Wno-missing-field-initializers \ -fPIC \ -std=c++11 \ + -g \ $(LOCAL_CFLAGS) \ diff --git a/Capture/C++/VideoCapture.cpp b/Capture/C++/VideoCapture.cpp index b64a492..dd31693 100644 --- a/Capture/C++/VideoCapture.cpp +++ b/Capture/C++/VideoCapture.cpp @@ -190,7 +190,7 @@ int main(int argc, char* argv[]){ break; case 'h': cout << helpstr << endl; - return 55; + return 0; } }