Add Android build on GitHub Actions (#1566)

Updates #1397
This commit is contained in:
Hajime Hoshi 2021-04-10 22:36:49 +09:00 committed by GitHub
parent 50afac7d71
commit e0372d9478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,12 @@ jobs:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
stable: false stable: false
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install dependencies - name: Install dependencies
if: ${{ matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'ubuntu-latest' }}
run: | run: |
@ -69,3 +75,8 @@ jobs:
run: | run: |
env GOOS=js GOARCH=wasm go test -tags=example -v ./... env GOOS=js GOARCH=wasm go test -tags=example -v ./...
env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -v ./... env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -v ./...
- name: ebitenmobile bind (Android)
run: |
go get github.com/hajimehoshi/go-inovation
go run ./cmd/ebitenmobile bind -target android -javapkg com.hajimehoshi.goinovation -o inovation.aar -v github.com/hajimehoshi/go-inovation/mobile