Skip to content

wip: better structured workflow #4

wip: better structured workflow

wip: better structured workflow #4

Workflow file for this run

name: "Build Artifact (Beta)"
# TODO: restrict this to build only on tag or on push to master.
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build-android:
name: go${{ matrix.go }} on ubuntu-amd64
strategy:
matrix:
# go: [ "1.21.x", "1.22.x" ] # we support the latest 2 stable versions of Go
go: [ "1.22.x" ] # we support only the latest stable versions of Go
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26d
add-to-path: true
link-to-sdk: true
- name: Install additional Android platforms # TODO: bump to a more recent Android API version?
run: |
sdkmanager --list_installed
sdkmanager "platforms;android-27"
- name: Install gomobile
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
- name: Build Android
run: |
make android
ls ./build
# sdkmanager --sdk_root=/usr/lib/android-sdk "platforms;android-29"