Skip to content

Commit

Permalink
Update c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
olibartfast authored Jul 4, 2024
1 parent 070546c commit 606c981
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libopencv-dev
if [[ ${{env.USE_GSTREAMER}} == "ON" ]]; then
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
fi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DUSE_GSTREAMER=${{env.USE_GSTREAMER}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C Release

0 comments on commit 606c981

Please sign in to comment.