Skip to content

Commit

Permalink
[#51124] Github Actions: Added using the common script for installing…
Browse files Browse the repository at this point in the history
… dependencies

Signed-off-by: Grzegorz Latosinski <[email protected]>
  • Loading branch information
glatosinski committed Nov 7, 2023
1 parent dca9471 commit 3109321
Showing 1 changed file with 9 additions and 30 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/grabthecam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,18 @@ jobs:
image: debian:bookworm

steps:
- name: Install dependencies
run: |
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
clang-format \
clang-tidy \
cmake \
g++-12 \
git \
libopencv-dev \
libv4l-dev \
make \
rapidjson-dev
- name: Add repository to safe list
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Checkout sources
uses: actions/checkout@v3

- name: Install dependencies
run: |
.github/scripts/prepare-env.sh
- name: Build the project
run: |
mkdir build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DADD_GRABTHECAM_FARSHOW_DEMO=ON ..
make
- name: Code linting
Expand All @@ -55,22 +43,13 @@ jobs:
image: debian:bookworm

steps:
- name: Install dependencies
run: |
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
clang-format \
clang-tidy \
cmake \
g++-12 \
git \
libopencv-dev \
libv4l-dev \
make \
rapidjson-dev
- name: Checkout sources
uses: actions/checkout@v3

- name: Install dependencies
run: |
.github/scripts/prepare-env.sh
- name: Build the project
run: |
mkdir build
Expand Down

0 comments on commit 3109321

Please sign in to comment.