From e0ccda667ecdde0306aee03d05061bc353f85dab Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 25 Feb 2025 13:30:43 +0100 Subject: [PATCH] [ci] add workflows for bash and cmake formatters --- .github/workflows/bash-format.yml | 26 ++++++++++++++++++++++++++ .github/workflows/cmake-format.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/bash-format.yml create mode 100644 .github/workflows/cmake-format.sh diff --git a/.github/workflows/bash-format.yml b/.github/workflows/bash-format.yml new file mode 100644 index 000000000..6a204e66f --- /dev/null +++ b/.github/workflows/bash-format.yml @@ -0,0 +1,26 @@ +name: bash-format +on: + workflow_dispatch: + branches: [ master, stable* ] + pull_request: + branches: [ master, stable* ] + schedule: + - cron: '30 4 * * SUN' + +jobs: + build: + runs-on: ubuntu-latest + name: "bash-format" + steps: + - name: "Check out source" + uses: actions/checkout@v4 + + - name: "Prepare environment" + run: | + sudo apt-get update -q -y + sudo apt-get install -q -y \ + shfmt + + - name: "Run shfmt..." + run: | + ./scripts/bash-format.sh diff --git a/.github/workflows/cmake-format.sh b/.github/workflows/cmake-format.sh new file mode 100644 index 000000000..1322e0439 --- /dev/null +++ b/.github/workflows/cmake-format.sh @@ -0,0 +1,26 @@ +name: cmake-format +on: + workflow_dispatch: + branches: [ master, stable* ] + pull_request: + branches: [ master, stable* ] + schedule: + - cron: '30 4 * * SUN' + +jobs: + build: + runs-on: ubuntu-latest + name: "cmake-format" + steps: + - name: "Check out source" + uses: actions/checkout@v4 + + - name: "Prepare environment" + run: | + sudo apt-get update -q -y + sudo apt-get install -q -y \ + cmake-format + + - name: "Run shfmt..." + run: | + ./scripts/cmake-format.sh