Skip to content

Commit

Permalink
github CI: Split steps
Browse files Browse the repository at this point in the history
  • Loading branch information
zakaria-fadli-netatmo committed Nov 10, 2024
1 parent 5e8be52 commit ff85600
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,43 @@ jobs:

- name: Install pre-requisits
run: sudo ./first_setup.sh
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "10.0"

build_debug:
configure:
runs-on: ubuntu-latest

needs: install

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake --preset debug
run: cmake

build_debug:
runs-on: ubuntu-latest
needs: configure
steps:
- name: Build
run: cmake --build --preset debug

- name: clang-tidy
run: cmake --build --preset debug -t clang-tidy

- name: cppcheck
run: cmake --build --preset debug -t cppcheck

build_release:
runs-on: ubuntu-latest

needs: install

needs: configure
steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake --preset release

- name: Build
run: cmake --build --preset release


static_analysis:
runs-on: ubuntu-latest
needs: configure
steps:
- uses: actions/checkout@v3
- name: clang-tidy
run: cmake --build --preset release -t clang-tidy
run: cmake --build --preset debug -t clang-tidy

- name: cppcheck
run: cmake --build --preset release -t cppcheck
run: cmake --build --preset debug -t cppcheck

0 comments on commit ff85600

Please sign in to comment.