From 91025501d0044ded05e9ae4ee8f7a7072852738f Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Mon, 22 Jan 2024 03:40:42 +0100 Subject: [PATCH] GH Actions: grabthecam-build: Fixed code linting Signed-off-by: Grzegorz Latosinski --- .github/workflows/grabthecam-build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/grabthecam-build.yml b/.github/workflows/grabthecam-build.yml index 249461b..b939787 100644 --- a/.github/workflows/grabthecam-build.yml +++ b/.github/workflows/grabthecam-build.yml @@ -6,23 +6,17 @@ on: pull_request: branches: [main] -env: - CC: /usr/bin/gcc-12 - CXX: /usr/bin/g++-12 - jobs: lint: runs-on: ubuntu-latest - container: - image: debian:bookworm steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies run: | - .github/scripts/prepare-env.sh + sudo .github/scripts/prepare-env.sh - name: Build the project run: | @@ -35,7 +29,7 @@ jobs: run: | cd build make format - test -z $(git diff) && exit 0 || exit 1 + test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; } example-build: runs-on: ubuntu-latest