RSDK-7808 - Add publish workflow for Android #18
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 & publish viamrtsp module for Android | |
# on: | |
# release: | |
# types: [published] | |
on: [push, pull_request] | |
jobs: | |
build-android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Build viamrtsp binary and package module | |
run: | | |
TARGET_OS=android TARGET_ARCH=arm64 make module | |
- name: Upload viamrtsp module to registry | |
uses: viamrobotics/upload-module@main | |
# if: startsWith(github.ref, 'refs/tags/') | |
with: | |
meta-path: meta.json | |
module-path: module.tar.gz | |
platform: android/arm64 | |
version: 0.0.2 | |
key-id: ${{ secrets.viam_key_id }} | |
key-value: ${{ secrets.viam_key_value }} |