Skip to content

android: script cannot be empty #5

android: script cannot be empty

android: script cannot be empty #5

Workflow file for this run

name: android
on:
push:
branches:
- 'android'
paths:
- 'action.yml'
- '.github/workflows/android_test.yml'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
id: go
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Load emulator and smoke test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: 'ls'
- name: Build go from tip
uses: iwdgo/gotip-build@android
id: gotip
with:
go_variables: GOOS=android GOARCH=amd64 CGO_ENABLED=1
test_build: true
- name: Upload go executable
uses: actions/upload-artifact@v3
if: ${{ env.crosscompile == 'false' }}
with:
name: gotip-${{ env.goos }}-${{ env.goarch }}
path: go/
- name: Upload go executable
uses: actions/upload-artifact@v3
if: ${{ env.crosscompile == 'true' }}
with:
name: gotip-${{ env.goos }}-${{ env.goarch }}
path: go/bin/${{ env.goos }}_${{ env.goarch }}