diff --git a/.clang-format-ignore b/.clang-format-ignore new file mode 100644 index 00000000..dbfe6acb --- /dev/null +++ b/.clang-format-ignore @@ -0,0 +1,2 @@ +# dont format any code in docs +./docs/* diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 7451f9f5..95db7fd2 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -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: diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml index 8f45d988..cf7d31a7 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/formatting.yaml @@ -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 diff --git a/.github/workflows/linux-compileonly.yaml b/.github/workflows/linux-compileonly.yaml index 547fb1ab..43a199e2 100644 --- a/.github/workflows/linux-compileonly.yaml +++ b/.github/workflows/linux-compileonly.yaml @@ -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: diff --git a/.github/workflows/linux-install.yaml b/.github/workflows/linux-install.yaml index 05e85cb2..4c36f383 100644 --- a/.github/workflows/linux-install.yaml +++ b/.github/workflows/linux-install.yaml @@ -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: diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index d5cb68ed..ef29f8fb 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -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: diff --git a/.github/workflows/osx.yaml b/.github/workflows/osx.yaml index 97d58f74..c2137abb 100644 --- a/.github/workflows/osx.yaml +++ b/.github/workflows/osx.yaml @@ -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: