Skip to content

Commit

Permalink
Don't run build step if linting fails (#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale authored Apr 16, 2024
1 parent 847cd93 commit 6f578d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
find . -type f \( -name "*.cmake" -o -name "*.cmake.in" -o -name "CMakeLists.txt" \) | xargs cmake-format --check
build:
if: "!(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))"
runs-on: ubuntu-latest
needs: lint
container: ghcr.io/fenics/test-env:current-openmpi
env:
SCOTCH_DIR: /usr/local/petsc/linux-gnu-real64-32
Expand Down Expand Up @@ -100,8 +100,8 @@ jobs:
run: python3 -c "import dolfinx; print(dolfinx.__version__)"

build-with-petsc:
if: "!(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))"
runs-on: ubuntu-latest
needs: lint
container: ghcr.io/fenics/test-env:current-openmpi
env:
PETSC_ARCH: ${{ matrix.petsc_arch }}
Expand Down

0 comments on commit 6f578d4

Please sign in to comment.