From 545b5bd7e7a292b6b1464560b2953dab31794f45 Mon Sep 17 00:00:00 2001 From: YusukeKato Date: Thu, 19 Sep 2024 16:38:34 +0900 Subject: [PATCH] =?UTF-8?q?STE32CubeIDE=E3=81=AE=E3=82=B5=E3=83=B3?= =?UTF-8?q?=E3=83=97=E3=83=AB=E3=83=97=E3=83=AD=E3=82=B0=E3=83=A9=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E4=BD=93=E8=A3=81=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yaml | 10 ++++++++++ STM32CubeIDE_Sample/STEP2/.clang-format | 1 + STM32CubeIDE_Sample/STEP3/.clang-format | 1 + STM32CubeIDE_Sample/STEP4/.clang-format | 1 + STM32CubeIDE_Sample/STEP5/.clang-format | 1 + STM32CubeIDE_Sample/STEP6/.clang-format | 1 + STM32CubeIDE_Sample/STEP7/.clang-format | 1 + STM32CubeIDE_Sample/STEP8/.clang-format | 1 + STM32CubeIDE_file/.clang-format | 1 + 9 files changed, 18 insertions(+) create mode 120000 STM32CubeIDE_Sample/STEP2/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP3/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP4/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP5/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP6/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP7/.clang-format create mode 120000 STM32CubeIDE_Sample/STEP8/.clang-format create mode 120000 STM32CubeIDE_file/.clang-format diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ac55739..4ab6f2d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -48,3 +48,13 @@ jobs: - run: sudo apt install -y clang-format zsh - run: clang-format --dry-run -Werror Arduino_Sample/STEP*/*.ino shell: zsh {0} + clang-format-stm32: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # 各ソースコードファイルに対してclang-formatによる整形が必要か判定する + # 正規表現を簡単にするためzshを使用する + - run: sudo apt install -y clang-format zsh + - run: clang-format --dry-run -Werror STM32CubeIDE_Sample/STEP*/*.c + - run: clang-format --dry-run -Werror STM32CubeIDE_file/STEP*/*.(c|h) + shell: zsh {0} diff --git a/STM32CubeIDE_Sample/STEP2/.clang-format b/STM32CubeIDE_Sample/STEP2/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP2/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP3/.clang-format b/STM32CubeIDE_Sample/STEP3/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP3/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP4/.clang-format b/STM32CubeIDE_Sample/STEP4/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP4/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP5/.clang-format b/STM32CubeIDE_Sample/STEP5/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP5/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP6/.clang-format b/STM32CubeIDE_Sample/STEP6/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP6/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP7/.clang-format b/STM32CubeIDE_Sample/STEP7/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP7/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_Sample/STEP8/.clang-format b/STM32CubeIDE_Sample/STEP8/.clang-format new file mode 120000 index 0000000..2d11237 --- /dev/null +++ b/STM32CubeIDE_Sample/STEP8/.clang-format @@ -0,0 +1 @@ +../../.clang-format \ No newline at end of file diff --git a/STM32CubeIDE_file/.clang-format b/STM32CubeIDE_file/.clang-format new file mode 120000 index 0000000..7cab60c --- /dev/null +++ b/STM32CubeIDE_file/.clang-format @@ -0,0 +1 @@ +../.clang-format \ No newline at end of file