mirror of
https://github.com/yggdrasil-network/yggdrasil-android.git
synced 2025-04-29 14:45:09 +03:00
Add NDK in CI
This commit is contained in:
parent
1a3e086264
commit
a027b006e4
1 changed files with 17 additions and 8 deletions
25
.github/workflows/android.yml
vendored
25
.github/workflows/android.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -30,13 +30,6 @@ jobs:
|
||||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
~/go/bin/gomobile init
|
~/go/bin/gomobile init
|
||||||
|
|
||||||
- name: Build Yggdrasil
|
|
||||||
run: |
|
|
||||||
mkdir app/libs
|
|
||||||
cd yggdrasil-go
|
|
||||||
PATH=$PATH:~/go/bin/ ./contrib/mobile/build -a
|
|
||||||
cp {yggdrasil.aar,yggdrasil-sources.aar} ../app/libs
|
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
@ -44,6 +37,22 @@ jobs:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Install NDK
|
||||||
|
uses: nttld/setup-ndk@v1
|
||||||
|
id: setup-ndk
|
||||||
|
with:
|
||||||
|
ndk-version: r21e
|
||||||
|
add-to-path: false
|
||||||
|
|
||||||
|
- name: Build Yggdrasil
|
||||||
|
run: |
|
||||||
|
mkdir app/libs
|
||||||
|
cd yggdrasil-go
|
||||||
|
PATH=$PATH:~/go/bin/ ./contrib/mobile/build -a
|
||||||
|
cp {yggdrasil.aar,yggdrasil-sources.aar} ../app/libs
|
||||||
|
env:
|
||||||
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
|
|
||||||
- name: Gradle build
|
- name: Gradle build
|
||||||
run: |
|
run: |
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue