From aa926e7c1252985a8f23275a103f440e609f003e Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Mon, 3 Aug 2026 12:45:49 -0700 Subject: [PATCH 1/3] use cloudbuild --- .github/workflows/deploy.yml | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6365c2f..622dd74 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,35 +5,14 @@ on: types: [published] jobs: - build_and_lint: - runs-on: ubuntu-4cpu-arm - container: ghcr.io/viam-modules/raspberry-pi:arm64 - timeout-minutes: 30 - + publish: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Verify no uncommitted changes from make lint - run: | - git init - git add . - chown -R testbot:testbot . - sudo -u testbot bash -lc 'make lint' - if [ -n "$GEN_DIFF" ]; then - echo '"make lint" resulted in changes not in git' 1>&2 - git status - exit 1 - fi - - - name: make module - run: | - sudo -u testbot bash -lc 'make module' - - - name: Upload - uses: viamrobotics/upload-module@main + - uses: actions/checkout@v4 + - uses: viamrobotics/build-action@v1 with: - module-path: bin/raspberry-pi-module.tar.gz - platform: linux/arm64 version: ${{ github.ref_name }} ref: ${{ github.sha }} key-id: ${{ secrets.VIAM_DEV_API_KEY_ID }} key-value: ${{ secrets.VIAM_DEV_API_KEY }} + token: ${{ github.token }} From a473b015f6a9082daf1634236b7c3d011b309acb Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Mon, 3 Aug 2026 12:54:17 -0700 Subject: [PATCH 2/3] update to use v4 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd5a0bd..310b9ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: /__e/node20/bin/node --version echo "Node Installed" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Verify no uncommitted changes from make lint run: | From 22b0c1c4eb0c3234e9be301dd26ff8888f9e98bf Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Mon, 3 Aug 2026 12:58:20 -0700 Subject: [PATCH 3/3] force node 20 --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 310b9ad..8ce8c6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,9 @@ jobs: # override /__e/node20 on 32-bit because it is 64-bit - /tmp/node20:/__e${{matrix.architecture != 'arm' && '-armhf' || ''}}/node20 timeout-minutes: 30 + # Node 20 is the last release with a 32-bit ARM (armv7l) build + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true' steps: - name: Unbork NodeJS for 32-bit