77 - ' !main'
88
99env :
10- BUILDER_VERSION : v0.8.22
11- BUILDER_SOURCE : releases
12- BUILDER_HOST : https://d19elf31gohf1l.cloudfront.net
13- PACKAGE_NAME : aws-crt-kotlin
1410 RUN : ${{ github.run_id }}-${{ github.run_number }}
1511
1612jobs :
@@ -29,19 +25,10 @@ jobs:
2925 restore-keys : |
3026 ${{ runner.os }}-gradle-
3127
32- - name : Configure JDK
33- uses : actions/setup-java@v3
34- with :
35- distribution : ' corretto'
36- java-version : 17
37- cache : ' gradle'
38-
39- - name : Build and Test ${{ env.PACKAGE_NAME }}
28+ - name : Build and Test
4029 run : |
41- python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
42- chmod a+x builder.pyz
4330 echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
44- ./builder.pyz build -p ${{ env.PACKAGE_NAME }}
31+ ./gradlew allTests
4532
4633 macos-compat :
4734 runs-on : macos-latest
@@ -58,19 +45,10 @@ jobs:
5845 restore-keys : |
5946 ${{ runner.os }}-gradle-
6047
61- - name : Configure JDK
62- uses : actions/setup-java@v3
63- with :
64- distribution : ' corretto'
65- java-version : 17
66- cache : ' gradle'
67-
68- - name : Build and Test ${{ env.PACKAGE_NAME }}
48+ - name : Build and Test
6949 run : |
70- python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
71- chmod a+x builder.pyz
7250 echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
73- ./builder.pyz build -p ${{ env.PACKAGE_NAME }}
51+ ./gradlew allTests
7452
7553 windows-compat :
7654 runs-on : windows-latest
8765 restore-keys : |
8866 ${{ runner.os }}-gradle-
8967
90- - name : Configure JDK
91- uses : actions/setup-java@v3
92- with :
93- distribution : ' corretto'
94- java-version : 17
95- cache : ' gradle'
96-
97- - name : Build and Test ${{ env.PACKAGE_NAME }}
68+ - name : Build and Test
9869 run : |
99- python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
100- python3 builder.pyz build -p ${{ env.PACKAGE_NAME }}
70+ echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
71+ ./gradlew allTests
0 commit comments