File tree 3 files changed +48
-5
lines changed
3 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 30
30
outputs :
31
31
matrix : ${{ steps.setup-matrix.outputs.matrix }}
32
32
33
+
34
+ samples :
35
+ # The type of runner that the job will run on
36
+ runs-on : ${{ matrix.os }}
37
+
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ os :
42
+ - ubuntu-latest
43
+ - macos-latest
44
+ - windows-latest
45
+ sample :
46
+ - samples/app
47
+ - samples/library
48
+
49
+ steps :
50
+ # Checks-out your repository under $GITHUB_WORKSPACE for the job.
51
+ - uses : actions/checkout@v2
52
+
53
+ - name : Setup Rust
54
+ run : |
55
+ rustup toolchain install stable
56
+ rustup target add x86_64-linux-android
57
+ rustup target add x86_64-unknown-linux-gnu
58
+ rustup target add aarch64-linux-android
59
+
60
+ # Use Java 8
61
+ - name : Setup Java 8
62
+ uses : actions/setup-java@v2
63
+ with :
64
+ distribution : ' temurin'
65
+ java-version : 8
66
+ cache : ' gradle'
67
+
68
+ - name : ${{ matrix.sample }}
69
+ run : |
70
+ ./gradlew -p ${{ matrix.sample }} :assembleDebug --info --warning-mode all
71
+
33
72
android_unversioned_tests :
34
73
# The type of runner that the job will run on
35
74
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. agp_version = ' 4.1 .0'
2
+ ext. agp_version = ' 7.0 .0'
3
3
repositories {
4
4
google()
5
5
maven {
@@ -17,6 +17,8 @@ apply plugin: 'org.mozilla.rust-android-gradle.rust-android'
17
17
18
18
android {
19
19
compileSdkVersion 27
20
+ ndkVersion " 23.1.7779620"
21
+
20
22
defaultConfig {
21
23
applicationId " com.nishtahir.androidrust"
22
24
minSdkVersion 21
@@ -31,17 +33,17 @@ android {
31
33
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
32
34
}
33
35
}
34
- ndkVersion " 20.1.5948944"
35
36
}
36
37
37
38
cargo {
38
39
module = " ../rust"
39
- targets = [" arm " , " x86 " , " x86_64" , " arm64" ]
40
+ targets = [" x86_64" , " arm64" ]
40
41
libname = " rust"
41
42
}
42
43
43
44
repositories {
44
45
google()
46
+ mavenCentral()
45
47
}
46
48
47
49
dependencies {
Original file line number Diff line number Diff line change 1
1
buildscript {
2
+ ext. agp_version = ' 7.0.0'
2
3
repositories {
3
4
google()
4
5
maven {
@@ -16,6 +17,7 @@ apply plugin: 'org.mozilla.rust-android-gradle.rust-android'
16
17
17
18
android {
18
19
compileSdkVersion 27
20
+ ndkVersion " 23.1.7779620"
19
21
20
22
defaultConfig {
21
23
minSdkVersion 21
@@ -24,7 +26,6 @@ android {
24
26
versionName " 1.0"
25
27
26
28
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
27
-
28
29
}
29
30
buildTypes {
30
31
release {
@@ -36,7 +37,7 @@ android {
36
37
37
38
cargo {
38
39
module = " ../rust"
39
- targets = [" arm " , " x86 " , " x86_64" , " arm64" ]
40
+ targets = [" x86_64" , " arm64" ]
40
41
libname = " rust"
41
42
42
43
features {
@@ -52,6 +53,7 @@ cargo {
52
53
53
54
repositories {
54
55
google()
56
+ mavenCentral()
55
57
}
56
58
57
59
dependencies {
You can’t perform that action at this time.
0 commit comments