Skip to content

Commit

Permalink
upload modules on release (#6)
Browse files Browse the repository at this point in the history
* meta.json, upload-module step

* tweak appimage-tag to run in branch (without uploading)

* Revert "tweak appimage-tag to run in branch (without uploading)"

This reverts commit c73a5c0.

* explicitly bundle ref name

* bugfix: z flag to fix 'unknown content-type for package'

* tweak to run in branch (no gcp upload)

* Revert "tweak to run in branch (no gcp upload)"

This reverts commit 7e87e7b.

* module private -> public

* detect release / continuous mode in version

* run in branch mode

* check for aix

* Revert "check for aix"

This reverts commit c94da59.

* try static build of aix to solve apprun error

* try without aix wrapper

* try including bash

* try bumping canon min date

* build docker on non-main branch (tmp)

* actually build docker on non-main

* reduce parallelism on viam-sdk to solve oom

* par back to j8, larger box, add missing packages.write permission

* revert docker in branch changes from 24949e3 7ab5df3

* use latest appimage-builder to fix AppImageCrafters/appimage-builder#272

* build docker in branch

* add back --break-system-packages

* Revert "build docker in branch"

This reverts commit 3fb012a.

* target canon image with working appimage-builder

* revert changes to appimage recipe

* Revert "run in branch mode"

This reverts commit 4b13f7e.
  • Loading branch information
abe-winter authored Aug 15, 2023
1 parent 1e868c6 commit cd4e04e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .canon.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
viam-camera-realsense:
arch: arm64
image: ghcr.io/viamrobotics/viam-camera-realsense:arm64
minimum_date: 2023-08-15T03:54:00.0Z
persistent: true
12 changes: 12 additions & 0 deletions .github/workflows/appimage-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ jobs:
- name: Build
run: make appimage TAG_VERSION="$GITHUB_REF_NAME"

- name: bundle module
run: |
cp packaging/appimages/deploy/viam-camera-realsense-${{ github.ref_name }}-aarch64.AppImage viam-camera-realsense-aarch64.AppImage
tar czf module.tar.gz viam-camera-realsense-aarch64.AppImage
- uses: viamrobotics/upload-module@main
with:
namespace: viam
platform: linux/arm64
version: ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }}
cli-config-secret: ${{ secrets.cli_config }}

- name: Authorize GCP Upload
uses: google-github-actions/auth@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
jobs:
docker:
name: Build Docker Image
runs-on: [buildjet-8vcpu-ubuntu-2204-arm]
permissions:
packages: write
runs-on: [buildjet-16vcpu-ubuntu-2204-arm]
timeout-minutes: 45

steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module.tar.gz
*.AppImage
2 changes: 1 addition & 1 deletion etc/Dockerfile.debian.bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RUN apt install -y \
RUN pip3 install -U pip setuptools urllib3==1.26.12 requests==2.26.0 --break-system-packages

# install appimage-builder
RUN pip3 install appimage-builder==1.1.0 --break-system-packages
RUN pip3 install --break-system-packages git+https://github.com/AppImageCrafters/appimage-builder.git@f38699ef3644fa5409a5a262b7b6d99d6fb85db9

# install Go
RUN apt install -y golang-go
Expand Down
13 changes: 13 additions & 0 deletions meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "viam:realsense",
"visibility": "public",
"url": "https://github.com/viamrobotics/viam-camera-realsense",
"description": "C++ camera module for the RealSense",
"models": [
{
"api": "rdk:component:camera",
"model": "viam:camera:realsense"
}
],
"entrypoint": "viam-camera-realsense-aarch64.AppImage"
}

0 comments on commit cd4e04e

Please sign in to comment.