Skip to content

Commit

Permalink
Don't use canon for android
Browse files Browse the repository at this point in the history
  • Loading branch information
hexbabe committed Sep 13, 2024
1 parent 90775eb commit eed795d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
runner: buildjet-8vcpu-ubuntu-2204-arm
target_os: linux
target_arch: arm64
- platform: android/arm64
runner: ubuntu-latest
target_os: android
target_arch: arm64
# - platform: android/arm64
# runner: ubuntu-latest
# target_os: android
# target_arch: arm64

runs-on: ${{ matrix.runner }}

steps:
Expand All @@ -34,16 +34,19 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.23
go-version: 1.21.13

- name: Install canon
- name: Install canon (only for non-Android platforms)
if: ${{ matrix.target_os != 'android' }}
run: |
export PATH="$(go env GOPATH)/bin:$PATH"
go install github.com/viamrobotics/canon@v1.1.1
go install github.com/viamrobotics/canon@v1.0.0
- name: Build and package
run: |
canon --profile viam-rtsp-antique
if [ "${{ matrix.target_os }}" != "android" ]; then
canon --profile viam-rtsp-antique
fi
TARGET_OS=${{ matrix.target_os }} TARGET_ARCH=${{ matrix.target_arch }} make module
- name: Upload viamrtsp module to registry
Expand Down

0 comments on commit eed795d

Please sign in to comment.