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 amd64 module | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
publish: | ||
name: Upload module for linux/amd64 | ||
runs-on: [buildjet-8vcpu-ubuntu-2204-amd] | ||
container: | ||
image: ghcr.io/viam-labs/ocean-prefilter:amd64 | ||
options: --platform linux/amd64 | ||
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/amd64 | ||
version: ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }} | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} |