@@ -30,42 +30,42 @@ jobs:
3030 outputs :
3131 matrix : ${{ steps.setup-matrix.outputs.matrix }}
3232
33- # samples:
34- # # The type of runner that the job will run on
35- # runs-on: ${{ matrix.os }}
36-
37- # strategy:
38- # fail-fast: false
39- # matrix:
40- # os:
41- # - ubuntu-latest
42- # - macos-latest
43- # - windows-latest
44- # sample:
45- # - samples/app
46- # - samples/library
47-
48- # steps:
49- # # Checks-out your repository under $GITHUB_WORKSPACE for the job.
50- # - uses: actions/checkout@v2
51-
52- # - name: Setup Rust
53- # run: |
54- # rustup toolchain install stable
55- # rustup target add x86_64-linux-android
56- # rustup target add x86_64-unknown-linux-gnu
57- # rustup target add aarch64-linux-android
58-
59- # - name: Setup Java 11
60- # uses: actions/setup-java@v2
61- # with:
62- # distribution: 'temurin'
63- # java-version: 11
64- # cache: 'gradle'
65-
66- # - name: ${{ matrix.sample }}
67- # run: |
68- # ./gradlew -p ${{ matrix.sample }} :assembleDebug --info --warning-mode all
33+ samples :
34+ # The type of runner that the job will run on
35+ runs-on : ${{ matrix.os }}
36+
37+ strategy :
38+ fail-fast : false
39+ matrix :
40+ os :
41+ - ubuntu-latest
42+ - macos-latest
43+ - windows-latest
44+ sample :
45+ - samples/app
46+ - samples/library
47+
48+ steps :
49+ # Checks-out your repository under $GITHUB_WORKSPACE for the job.
50+ - uses : actions/checkout@v2
51+
52+ - name : Setup Rust
53+ run : |
54+ rustup toolchain install stable
55+ rustup target add x86_64-linux-android
56+ rustup target add x86_64-unknown-linux-gnu
57+ rustup target add aarch64-linux-android
58+
59+ - name : Setup Java 11
60+ uses : actions/setup-java@v2
61+ with :
62+ distribution : ' temurin'
63+ java-version : 11
64+ cache : ' gradle'
65+
66+ - name : ${{ matrix.sample }}
67+ run : |
68+ ./gradlew -p ${{ matrix.sample }} :assembleDebug --info --warning-mode all
6969
7070 android_unversioned_tests :
7171 # The type of runner that the job will run on
7575 fail-fast : false
7676 matrix :
7777 os :
78- # - ubuntu-latest
79- # - macos-latest
78+ - ubuntu-latest
79+ - macos-latest
8080 - windows-latest
8181
8282 steps :
@@ -106,55 +106,55 @@ jobs:
106106 run : |
107107 ./gradlew -p plugin test --info --warning-mode all
108108
109- # android_version_tests:
110- # needs: [generate_versions] # , sanity_check]
111-
112- # # The type of runner that the job will run on
113- # runs-on: ubuntu-latest
114-
115- # strategy:
116- # fail-fast: false
117- # matrix:
118- # androidTestTask: ${{ fromJson(needs.generate_versions.outputs.matrix) }}
119-
120- # # Steps represent a sequence of tasks that will be executed as part of the job
121- # steps:
122- # # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
123- # - uses: actions/checkout@v2
124-
125- # # # Sets up the NDK required by AGP 3.6.x
126- # # - name: Setup NDK
127- # # run: sudo $ANDROID_HOME/tools/bin/sdkmanager 'ndk;20.0.5594570'
128-
129- # # - name: Install Rustup
130- # # run: |
131- # # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
132- # # echo "$HOME/.cargo/bin" >> $GITHUB_PATH
133-
134- # - name: Setup Rust
135- # run: |
136- # rustup toolchain install stable
137- # rustup target add x86_64-linux-android
138- # rustup target add x86_64-unknown-linux-gnu
139- # rustup target add aarch64-linux-android
140-
141- # # Use Java 8
142- # - name: Setup Java 8
143- # uses: actions/setup-java@v2
144- # with:
145- # distribution: 'temurin'
146- # java-version: 8
147- # cache: 'gradle'
148-
149- # - name: Gradle setup
150- # run: |
151- # ./gradlew -p plugin tasks --warning-mode all
152-
153- # - name: Gradle test
154- # run: |
155- # ./gradlew -p plugin ${{ matrix.androidTestTask }} --info --warning-mode all
156-
157- # # # Gradle build
158- # # - uses: eskatos/gradle-command-action@v1
159- # # with:
160- # # arguments: ${{ matrix.androidTestTask }} -I gradle/buildScanInit.gradle
109+ android_version_tests :
110+ needs : [generate_versions] # , sanity_check]
111+
112+ # The type of runner that the job will run on
113+ runs-on : ubuntu-latest
114+
115+ strategy :
116+ fail-fast : false
117+ matrix :
118+ androidTestTask : ${{ fromJson(needs.generate_versions.outputs.matrix) }}
119+
120+ # Steps represent a sequence of tasks that will be executed as part of the job
121+ steps :
122+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
123+ - uses : actions/checkout@v2
124+
125+ # # Sets up the NDK required by AGP 3.6.x
126+ # - name: Setup NDK
127+ # run: sudo $ANDROID_HOME/tools/bin/sdkmanager 'ndk;20.0.5594570'
128+
129+ # - name: Install Rustup
130+ # run: |
131+ # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
132+ # echo "$HOME/.cargo/bin" >> $GITHUB_PATH
133+
134+ - name : Setup Rust
135+ run : |
136+ rustup toolchain install stable
137+ rustup target add x86_64-linux-android
138+ rustup target add x86_64-unknown-linux-gnu
139+ rustup target add aarch64-linux-android
140+
141+ # Use Java 8
142+ - name : Setup Java 8
143+ uses : actions/setup-java@v2
144+ with :
145+ distribution : ' temurin'
146+ java-version : 8
147+ cache : ' gradle'
148+
149+ - name : Gradle setup
150+ run : |
151+ ./gradlew -p plugin tasks --warning-mode all
152+
153+ - name : Gradle test
154+ run : |
155+ ./gradlew -p plugin ${{ matrix.androidTestTask }} --info --warning-mode all
156+
157+ # # Gradle build
158+ # - uses: eskatos/gradle-command-action@v1
159+ # with:
160+ # arguments: ${{ matrix.androidTestTask }} -I gradle/buildScanInit.gradle
0 commit comments