Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,7 +31,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: |
Expand Down
Loading