(ci) Add instruction to build tor-mobile-kmp library
@@ -34,12 +34,18 @@ jobs:
ref: android-phoenix
path: eclair-core
- - name: Checkout Tor_Onion_Proxy_Library
+ - name: Checkout Tor_Onion_Proxy_Library (Tor for legacy android app)
uses: actions/checkout@v2
with:
repository: ACINQ/Tor_Onion_Proxy_Library
path: tor-lib
+ - name: Checkout tor-mobile-kmp (Tor for iOS and modern Android app)
+ uses: actions/checkout@v2
+ with:
+ repository: ACINQ/tor-mobile-kmp
+ path: tor-mobile-kmp
+
# 2 - setup cache/jdk
- name: Cache maven dependencies
@@ -49,6 +55,13 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
+ - name: Cached Konan
+ uses: actions/cache@v2
+ with:
+ path: ~/.konan
+ key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-konan-
+
- name: Set up jdk 1.11
uses: actions/setup-java@v1
with:
@@ -74,6 +87,12 @@ jobs:
./gradlew :android:build
./gradlew :android:publishToMaven
+ - name: Build tor-mobile-kmp and install to local maven repo
+ run: |
+ cd tor-mobile-kmp
+ git submodule update --init
+ ./gradlew clean build publishToMavenLocal
+
- name: Assemble new android app apk
run: |
cd phoenix
