0.0.16-rc2 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build arm64 module | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
on: | |
release: | |
types: [published] | |
# This regex matches either a semver (e.g. 1.2.3) | |
# or a release candidate in one of these forms: | |
# 1.2.3-rc or 1.2.3-rc1 | |
# Adjust the regex below as needed. | |
# The pattern: | |
# ^(?:[0-9]+\.[0-9]+\.[0-9]+|[0-9]+\.[0-9]+\.[0-9]+-rc(?:[0-9]+)?)$ | |
# means: start-of-string, then either: | |
# [0-9]+.[0-9]+.[0-9]+ | |
# or [0-9]+.[0-9]+.[0-9]+-rc optionally followed by digits, then end-of-string. | |
jobs: | |
validate-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate tag format | |
run: | | |
TAG="${{ github.event.release.tag_name }}" | |
echo "Validating tag: $TAG" | |
if [[ $TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]*)?$ ]]; then | |
echo "Tag matches semver." | |
else | |
echo "Error: tag does not match semvar" | |
exit 1 | |
fi | |
publish: | |
needs: validate-tag | |
name: Upload module for linux/arm64 | |
runs-on: [buildjet-2vcpu-ubuntu-2204-arm] | |
container: | |
image: ghcr.io/viamrobotics/ocean-prefilter:arm64 | |
options: --platform linux/arm64 | |
timeout-minutes: 30 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Build | |
run: make module.tar.gz | |
- name: Upload | |
uses: viamrobotics/upload-module@v1 | |
with: | |
platform: linux/arm64 | |
version: ${{ github.ref_name }} | |
key-id: ${{ secrets.viam_key_id }} | |
key-value: ${{ secrets.viam_key_value }} |