From 3a9854f8bd24d5c4db14b16ad8d40d8d1ef7400c Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sun, 19 Apr 2026 15:42:43 +0900 Subject: [PATCH 1/3] feat: Update PR lint and type check workflow to include additional paths and verification steps for protobuf files --- .github/workflows/pr-lint-typecheck.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/pr-lint-typecheck.yml b/.github/workflows/pr-lint-typecheck.yml index 04eb80a..d94b382 100644 --- a/.github/workflows/pr-lint-typecheck.yml +++ b/.github/workflows/pr-lint-typecheck.yml @@ -6,15 +6,25 @@ on: - main paths: - ".github/workflows/pr-lint-typecheck.yml" + - "Makefile" + - "platformio.ini" + - "platformio-m5stack.ini" - "pyproject.toml" + - "protobuf/**" - "uv.lock" + - "firmware/lib/generated_protobuf/**" - "stackchan_server/**" - "example_apps/**" pull_request: paths: - ".github/workflows/pr-lint-typecheck.yml" + - "Makefile" + - "platformio.ini" + - "platformio-m5stack.ini" - "pyproject.toml" + - "protobuf/**" - "uv.lock" + - "firmware/lib/generated_protobuf/**" - "stackchan_server/**" - "example_apps/**" @@ -42,3 +52,14 @@ jobs: - name: ty run: uv run ty check stackchan_server example_apps + + - name: Install PlatformIO + run: python -m pip install platformio + + - name: Verify generated protobuf files are up to date + run: | + set -euo pipefail + pio pkg install -e m5stack-cores3-m5unified + make protobuf + git diff --stat -- stackchan_server/generated_protobuf firmware/lib/generated_protobuf + git diff --exit-code -- stackchan_server/generated_protobuf firmware/lib/generated_protobuf From 68e1eb8389c9a1328803b2b9eded50690f45958c Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sun, 19 Apr 2026 15:46:30 +0900 Subject: [PATCH 2/3] feat: Add GitHub Actions workflow for PlatformIO build and update servo center offset definitions --- .github/workflows/pr-platformio-build.yml | 41 +++++++++++++++++++++++ firmware/include/config.template.h | 4 +-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pr-platformio-build.yml diff --git a/.github/workflows/pr-platformio-build.yml b/.github/workflows/pr-platformio-build.yml new file mode 100644 index 0000000..9b6ee35 --- /dev/null +++ b/.github/workflows/pr-platformio-build.yml @@ -0,0 +1,41 @@ +name: PR PlatformIO Build + +on: + push: + branches: + - main + paths: + - ".github/workflows/pr-platformio-build.yml" + - "platformio.ini" + - "platformio-m5stack.ini" + - "protobuf/**" + - "firmware/**" + pull_request: + paths: + - ".github/workflows/pr-platformio-build.yml" + - "platformio.ini" + - "platformio-m5stack.ini" + - "protobuf/**" + - "firmware/**" + +jobs: + platformio-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: Install PlatformIO + run: python -m pip install platformio + + - name: Prepare firmware config + run: cp firmware/include/config.template.h firmware/include/config.h + + - name: Build firmware + run: pio run --environment m5stack-cores3-m5unified diff --git a/firmware/include/config.template.h b/firmware/include/config.template.h index c9db3e8..8921ab7 100644 --- a/firmware/include/config.template.h +++ b/firmware/include/config.template.h @@ -23,8 +23,8 @@ // #define SERVO_SG90_Y_PIN 6 // Center offset added to the logical 90-degree center // Positive values bias X to the right and Y upward; negative values bias X to the left and Y downward -// #define SERVO_SG90_X_CENTER_OFFSET 0 -// #define SERVO_SG90_Y_CENTER_OFFSET 0 +#define SERVO_SG90_X_CENTER_OFFSET 0 +#define SERVO_SG90_Y_CENTER_OFFSET 0 // -- using SCS0009 -- // #define USE_SERVO_SCS0009 1 From 212d903d1bf05f3bc11ee8de91a75b6855d64f99 Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sun, 19 Apr 2026 15:51:06 +0900 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20develop=E3=83=96=E3=83=A9=E3=83=B3?= =?UTF-8?q?=E3=83=81=E3=82=92=E3=83=97=E3=83=83=E3=82=B7=E3=83=A5=E3=81=8A?= =?UTF-8?q?=E3=82=88=E3=81=B3=E3=83=97=E3=83=AB=E3=83=AA=E3=82=AF=E3=82=A8?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=81=AE=E3=83=88=E3=83=AA=E3=82=AC=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-lint-typecheck.yml | 1 + .github/workflows/pr-platformio-build.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/pr-lint-typecheck.yml b/.github/workflows/pr-lint-typecheck.yml index d94b382..8095725 100644 --- a/.github/workflows/pr-lint-typecheck.yml +++ b/.github/workflows/pr-lint-typecheck.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - develop paths: - ".github/workflows/pr-lint-typecheck.yml" - "Makefile" diff --git a/.github/workflows/pr-platformio-build.yml b/.github/workflows/pr-platformio-build.yml index 9b6ee35..87ec970 100644 --- a/.github/workflows/pr-platformio-build.yml +++ b/.github/workflows/pr-platformio-build.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - develop paths: - ".github/workflows/pr-platformio-build.yml" - "platformio.ini"