This repository was archived by the owner on Jul 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
80 lines (69 loc) · 2.29 KB
/
Copy pathappimage.yml
File metadata and controls
80 lines (69 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build AppImage SLAM Server
on:
workflow_dispatch:
workflow_call:
secrets:
GCP_CREDENTIALS:
required: true
jobs:
appimage:
name: AppImage Build ORB_SLAM3
strategy:
matrix:
include:
- arch: [x64, qemu-host]
image: ghcr.io/viamrobotics/canon:amd64-cache
platform: linux/amd64
- arch: [arm64, qemu-host]
image: ghcr.io/viamrobotics/canon:arm64-cache
platform: linux/arm64
runs-on: ${{ matrix.arch }}
container:
image: ${{ matrix.image }}
options: --platform ${{ matrix.platform }}
timeout-minutes: 45
steps:
- name: Check out code in viam-orb-slam3 directory
uses: actions/checkout@v3
with:
submodules: recursive
path: viam-orb-slam3
- name: make bufinstall buf setup
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
retry_on: timeout
shell: bash
command: |
chown -R testbot .
sudo -u testbot bash -lc 'cd viam-orb-slam3 && make bufinstall buf setup'
- name: make build
run: |
sudo -u testbot bash -lc 'cd viam-orb-slam3 && make build'
- name: make test
run: |
sudo -u testbot bash -lc 'cd viam-orb-slam3 && make test'
- name: Copy orb_grpc_server binary
if: matrix.platform == 'linux/amd64'
run: |
sudo cp viam-orb-slam3/viam-orb-slam3/bin/orb_grpc_server /usr/local/bin/orb_grpc_server
- name: Run viam-orb-slam3 integration tests
if: matrix.platform == 'linux/amd64'
run: |
sudo -u testbot bash -lc 'cd viam-orb-slam3 && sudo go test -v -race -run TestOrbslamIntegration'
- name: Build appimage
run: sudo -u testbot bash -lc 'cd viam-orb-slam3 && make BUILD_CHANNEL="latest" appimage'
- name: Authorize GCP Upload
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: Deploy Files
uses: google-github-actions/upload-cloud-storage@v0.10.4
with:
headers: "cache-control: no-cache"
path: 'viam-orb-slam3/etc/packaging/appimages/deploy/'
destination: 'packages.viam.com/apps/slam-servers/'
glob: '*'
parent: false
gzip: false