File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,20 @@ jobs:
2121 steps :
2222 - name : Checkout sources
2323 uses : actions/checkout@v2
24+ - uses : actions/cache@v2
25+ with :
26+ path : |
27+ ~/.gradle/caches
28+ ~/.gradle/wrapper
29+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
30+ restore-keys : |
31+ ${{ runner.os }}-gradle-
2432 - name : Build and Test ${{ env.PACKAGE_NAME }}
25- env :
26- CI_USER : ${{ secrets.CI_USER}}
27- CI_ACCESS_TOKEN : ${{ secrets.CI_ACCESS_TOKEN }}
2833 run : |
29- echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
30- export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-ubuntu-16-x64:${{ env.BUILDER_VERSION }}
31- docker pull $DOCKER_IMAGE
32- docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} \
33- --env GITHUB_REF \
34- --env GITHUB_HEAD_REF \
35- --env CI_USER \
36- --env CI_ACCESS_TOKEN \
37- --env GIT_ASKPASS=/root/${{ env.PACKAGE_NAME }}/.github/scripts/git-ci-askpass.sh \
38- $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }}
34+ python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
35+ chmod a+x builder.pyz
36+ echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
37+ ./builder.pyz build -p ${{ env.PACKAGE_NAME }}
3938
4039 macos-compat :
4140 runs-on : macos-latest
You can’t perform that action at this time.
0 commit comments