mirror of
https://github.com/yggdrasil-network/yggdrasil-android.git
synced 2025-04-29 06:35:08 +03:00
Update CI
This commit is contained in:
parent
f9502ba058
commit
a79449c389
1 changed files with 30 additions and 6 deletions
36
.github/workflows/android.yml
vendored
36
.github/workflows/android.yml
vendored
|
@ -12,15 +12,39 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out
|
||||||
- name: set up JDK 11
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Check out Yggdrasil
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: yggdrasil-network/yggdrasil-go
|
||||||
|
path: yggdrasil-go
|
||||||
|
ref: develop
|
||||||
|
|
||||||
|
- name: Setup Go environment
|
||||||
|
uses: actions/setup-go@v3.3.1
|
||||||
|
|
||||||
|
- name: Install gomobile
|
||||||
|
run: |
|
||||||
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
|
gomobile init
|
||||||
|
|
||||||
|
- name: Build Yggdrasil
|
||||||
|
run: |
|
||||||
|
mkdir app/libs
|
||||||
|
cd yggdrasil-go
|
||||||
|
./contrib/mobile/build -a
|
||||||
|
cp {yggdrasil.aar,yggdrasil-sources.aar} ../app/libs
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Gradle build
|
||||||
run: chmod +x gradlew
|
run: |
|
||||||
- name: Build with Gradle
|
chmod +x gradlew
|
||||||
run: ./gradlew build
|
./gradlew build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue