Skip to content

Commit 94cd314

Browse files
authoredApr 21, 2023
Build and Release Semi-Static Binaries (viamrobotics#2238)
1 parent 33b9644 commit 94cd314

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+531
-432
lines changed
 

‎.canon.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# This file provides project-level configuration for the canon dev environment utility. https://github.com/viamrobotics/canon
22
viam-rdk:
3+
default: true
34
image_amd64: ghcr.io/viamrobotics/canon:amd64-cache
45
image_arm64: ghcr.io/viamrobotics/canon:arm64-cache
5-
minimum_date: 2022-12-20T18:49:25.781750658Z
6+
minimum_date: 2023-04-20T00:00:00.0Z
67
update_interval: 168h0m0s
78
user: testbot
89
group: testbot
10+
persistent: true
11+
12+
viam-rdk-antique:
13+
image_amd64: ghcr.io/viamrobotics/antique:amd64-cache
14+
image_arm64: ghcr.io/viamrobotics/antique:arm64-cache
15+
minimum_date: 2023-04-20T00:00:00.0Z
16+
update_interval: 168h0m0s
17+
user: testbot
18+
group: testbot
19+
persistent: true

‎.github/workflows/appimage.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
GCP_CREDENTIALS:
88
required: true
99

10-
env:
11-
GOPRIVATE: "github.com/viamrobotics/*,go.viam.com/*"
12-
1310
jobs:
1411
appimage:
1512
name: AppImage Build
@@ -44,9 +41,10 @@ jobs:
4441
ref: ${{ github.event.pull_request.head.sha }}
4542
fetch-depth: 2
4643

47-
- name: Clean
44+
- name: Clean and Fix Permissions
4845
run: |
49-
make clean-all
46+
chown testbot:testbot -R .
47+
sudo -Hu testbot bash -lc 'make clean-all'
5048
5149
- name: Authorize GCP Upload
5250
uses: google-github-actions/auth@v1
@@ -56,7 +54,7 @@ jobs:
5654
- name: Build and Package (PR)
5755
if: contains(github.event.pull_request.labels.*.name, 'appimage') || contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
5856
run: |
59-
make BUILD_CHANNEL="pr-${{ github.event.pull_request.number }}" appimage
57+
sudo -Hu testbot bash -lc 'make BUILD_CHANNEL="pr-${{ github.event.pull_request.number }}" appimage'
6058
6159
- name: Upload Files (PR)
6260
if: contains(github.event.pull_request.labels.*.name, 'appimage') || contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
@@ -74,15 +72,15 @@ jobs:
7472
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
7573
run: |
7674
echo "date=`date +%F`" >> $GITHUB_OUTPUT
77-
make BUILD_CHANNEL="latest" appimage
75+
sudo -Hu testbot bash -lc 'make BUILD_CHANNEL="latest" appimage'
7876
7977
- name: Upload Files (Testing)
8078
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
8179
uses: google-github-actions/upload-cloud-storage@v0.10.4
8280
with:
8381
headers: "cache-control: no-cache"
8482
path: 'etc/packaging/appimages/deploy/'
85-
destination: 'packages.viam.com/apps/viam-server/testing/${{ steps.build_test_app.outputs.date }}/${{ github.sha }}/'
83+
destination: 'packages.viam.com/apps/viam-server/testing/appimage/${{ steps.build_test_app.outputs.date }}/${{ github.sha }}/'
8684
glob: '*'
8785
parent: false
8886
gzip: false
@@ -111,7 +109,7 @@ jobs:
111109
export TEST_DIR=`mktemp -d -t test-viam-server-XXXXXX`
112110
cd $TEST_DIR
113111
114-
curl -o viam-server http://packages.viam.com/apps/viam-server/testing/${{ needs.appimage.outputs.date }}/${{ github.sha }}/viam-server-latest-`uname -m`.AppImage
112+
curl -o viam-server http://packages.viam.com/apps/viam-server/testing/appimage/${{ needs.appimage.outputs.date }}/${{ github.sha }}/viam-server-latest-`uname -m`.AppImage
115113
chmod 755 viam-server
116114
117115
export RAND_PORT=$((30000 + $RANDOM))
@@ -142,4 +140,4 @@ jobs:
142140

143141
- name: Publish AppImage
144142
run: |
145-
gsutil mv "gs://packages.viam.com/apps/viam-server/testing/${{ needs.appimage_test.outputs.date }}/${{ github.sha }}/*" "gs://packages.viam.com/apps/viam-server/"
143+
gsutil mv "gs://packages.viam.com/apps/viam-server/testing/appimage/${{ needs.appimage_test.outputs.date }}/${{ github.sha }}/*" "gs://packages.viam.com/apps/viam-server/"

0 commit comments

Comments
 (0)
Please sign in to comment.