From 58bf8a88a6df0ae48ef47b4d82f8eca5912ef970 Mon Sep 17 00:00:00 2001 From: Niklas Jensen Date: Fri, 2 Jan 2026 15:27:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=8C=EF=B8=8F=E2=80=8D=E2=99=80?= =?UTF-8?q?=EF=B8=8FFirst=20iteration=20of=20proto=20building=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/proto-build.yml | 46 +++++++++++++++++++++++++++++++ platform_shared/imu_report.proto | 11 -------- 2 files changed, 46 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/proto-build.yml delete mode 100644 platform_shared/imu_report.proto diff --git a/.github/workflows/proto-build.yml b/.github/workflows/proto-build.yml new file mode 100644 index 0000000..9e94466 --- /dev/null +++ b/.github/workflows/proto-build.yml @@ -0,0 +1,46 @@ +name: Proto Build + +on: + push: + branches: [ master, protobuf-playground ] + pull_request: + branches: [ master, protobuf-playground ] + + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + env: + BASE_PATH: /SpotMicroESP32-Leika + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Protocol Buffers compiler + uses: arduino/setup-protoc@v3 + with: + version: "25.x" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + cache-dependency-path: "./app/pnpm-lock.yaml" + + - name: Install dependencies + run: pnpm install + working-directory: ./app + + - name: Build Protocol Buffers (Typescript) + run: protoc --plugin="protoc-gen-ts_proto=./app/node_modules/.bin/protoc-gen-ts_proto" --ts_proto_out="./app/src/lib/platform_shared" --ts_proto_opt=outputSchema=true --proto_path "./platform_shared" ./platform_shared/websocket_message.proto ./platform_shared/rest_message.proto \ No newline at end of file diff --git a/platform_shared/imu_report.proto b/platform_shared/imu_report.proto deleted file mode 100644 index 6e26f88..0000000 --- a/platform_shared/imu_report.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -message IMUReport { - - float x = 1; - float y = 2; - float z = 3; - float temp = 4; - bool success = 5; -} \ No newline at end of file