7
7
GCP_CREDENTIALS :
8
8
required : true
9
9
10
- env :
11
- GOPRIVATE : " github.com/viamrobotics/*,go.viam.com/*"
12
-
13
10
jobs :
14
11
appimage :
15
12
name : AppImage Build
44
41
ref : ${{ github.event.pull_request.head.sha }}
45
42
fetch-depth : 2
46
43
47
- - name : Clean
44
+ - name : Clean and Fix Permissions
48
45
run : |
49
- make clean-all
46
+ chown testbot:testbot -R .
47
+ sudo -Hu testbot bash -lc 'make clean-all'
50
48
51
49
- name : Authorize GCP Upload
52
50
uses : google-github-actions/auth@v1
56
54
- name : Build and Package (PR)
57
55
if : contains(github.event.pull_request.labels.*.name, 'appimage') || contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
58
56
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'
60
58
61
59
- name : Upload Files (PR)
62
60
if : contains(github.event.pull_request.labels.*.name, 'appimage') || contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
@@ -74,15 +72,15 @@ jobs:
74
72
if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
75
73
run : |
76
74
echo "date=`date +%F`" >> $GITHUB_OUTPUT
77
- make BUILD_CHANNEL="latest" appimage
75
+ sudo -Hu testbot bash -lc ' make BUILD_CHANNEL="latest" appimage'
78
76
79
77
- name : Upload Files (Testing)
80
78
if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
81
79
uses : google-github-actions/upload-cloud-storage@v0.10.4
82
80
with :
83
81
headers : " cache-control: no-cache"
84
82
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 }}/'
86
84
glob : ' *'
87
85
parent : false
88
86
gzip : false
@@ -111,7 +109,7 @@ jobs:
111
109
export TEST_DIR=`mktemp -d -t test-viam-server-XXXXXX`
112
110
cd $TEST_DIR
113
111
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
115
113
chmod 755 viam-server
116
114
117
115
export RAND_PORT=$((30000 + $RANDOM))
@@ -142,4 +140,4 @@ jobs:
142
140
143
141
- name : Publish AppImage
144
142
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