Skip to content

Commit

Permalink
Reduce CI runs, skip docs formatting, improve CI names
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jul 12, 2024
1 parent 59d783d commit 0ef8189
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# dont format any code in docs
./docs/*
7 changes: 6 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Docs build
run-name: Docs build

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: clang-format check
run-name: clang-format check

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
- README.md
- 'docs/**'
types: [ opened, reopened, synchronize ]

permissions: read-all
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/linux-compileonly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
name: Linux-CompileOnly

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/linux-install.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Linux-Install
run-name: Linux-Install

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Linux
run-name: Linux

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/osx.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: macOS
run-name: macOS

# only run most recent workflow in branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
Expand Down

0 comments on commit 0ef8189

Please sign in to comment.