mirror of
https://github.com/yggdrasil-network/yggdrasil-android.git
synced 2025-04-28 22:25:09 +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
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: set up JDK 11
|
||||
- name: Check out
|
||||
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
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
- name: Gradle build
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue