-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.46 KB
/
release.yml
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
name: Build and Publish RC
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
# To test workflow updates you need to work in a branch directly on viam-modules/uln2003
# and tag your working branch instead of @main in any viam-modules/uln2003 "uses" below.
# Don't forget to tag back to @main before merge.
jobs:
test:
uses: ./.github/workflows/test.yml
publish:
needs: test
strategy:
matrix:
include:
- arch: buildjet-8vcpu-ubuntu-2204
image: ghcr.io/viamrobotics/rdk-devenv:amd64-cache
platform: linux/amd64
label: amd64
- arch: buildjet-8vcpu-ubuntu-2204-arm
image: ghcr.io/viamrobotics/rdk-devenv:arm64-cache
platform: linux/arm64
label: arm64
runs-on: ${{ matrix.arch }}
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.23
- name: Build module
run: |
sudo -u testbot bash -lc 'make module'
- name: Upload uln2003 module to registry
uses: viamrobotics/upload-module@main
with:
meta-path: meta.json
module-path: bin/module.tar.gz
platform: ${{ matrix.platform }}
version: ${{ github.ref_name }}
key-id: ${{ secrets.VIAM_DEV_API_KEY_ID }}
key-value: ${{ secrets.VIAM_DEV_API_KEY }}