Revert "Update actions workflows and add clang format check for PRs (#1418)"
This reverts commit 38d58f2d8b due to it causing spam and other problems with pull requests.
This commit is contained in:
48
.github/workflows/clang-format.yml
vendored
48
.github/workflows/clang-format.yml
vendored
@@ -1,48 +0,0 @@
|
|||||||
name: Check formatting
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**'
|
|
||||||
- '!.gitignore'
|
|
||||||
- '!*.md'
|
|
||||||
- '!.github/**'
|
|
||||||
- '.github/workflows/clang-format.yml'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
format-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Fetch base commit
|
|
||||||
run: git fetch origin ${{ github.event.pull_request.base.sha }}
|
|
||||||
|
|
||||||
- name: Install clang-format-20
|
|
||||||
run: |
|
|
||||||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
|
||||||
sudo add-apt-repository -y "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main"
|
|
||||||
sudo apt-get install -y -qq clang-format-20
|
|
||||||
|
|
||||||
- uses: reviewdog/action-setup@v1
|
|
||||||
|
|
||||||
- name: Check formatting on changed lines
|
|
||||||
env:
|
|
||||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git clang-format-20 --binary clang-format-20 \
|
|
||||||
--diff ${{ github.event.pull_request.base.sha }} -- \
|
|
||||||
'*.c' '*.cpp' '*.cc' '*.h' '*.hpp' \
|
|
||||||
| reviewdog \
|
|
||||||
-name="clang-format" \
|
|
||||||
-f=diff \
|
|
||||||
-reporter=github-pr-check \
|
|
||||||
-fail-level=error \
|
|
||||||
-filter-mode=added
|
|
||||||
11
.github/workflows/nightly-server.yml
vendored
11
.github/workflows/nightly-server.yml
vendored
@@ -5,12 +5,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/**'
|
||||||
- '!.github/**'
|
- '!.github/workflows/nightly-server.yml'
|
||||||
- '.github/workflows/nightly-server.yml'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
11
.github/workflows/nightly.yml
vendored
11
.github/workflows/nightly.yml
vendored
@@ -5,12 +5,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/**'
|
||||||
- '!.github/**'
|
- '!.github/workflows/nightly.yml'
|
||||||
- '.github/workflows/nightly.yml'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
10
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
@@ -4,12 +4,10 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, synchronize]
|
types: [opened, reopened, synchronize]
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/*.md'
|
||||||
- '!.github/**'
|
|
||||||
- '.github/workflows/pull-request.yml'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user