Skip to content

Commit

Permalink
Add Android test build
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz committed Sep 13, 2023
1 parent bb791d5 commit e400c06
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/android-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Android build test

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: NDK Cache
id: ndk-cache
uses: actions/cache@v3
with:
path: /usr/local/lib/android/sdk/ndk
key: ndk-cache-23.1.7779620
- name: Setup NDK
run: /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;23.1.7779620"
- name: Checkout netbird repository
uses: actions/checkout@v3
with:
repository: netbirdio/react-native-app
ref: main
path: react-native-app
- name: install gomobile
run: go install golang.org/x/mobile/cmd/[email protected]
- name: build android nebtird lib
run: PATH=$PATH:$(go env GOPATH)/bin bash -x build-android-lib.sh $GITHUB_WORKSPACE/react-native-app
env:
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/23.1.7779620

0 comments on commit e400c06

Please sign in to comment.