|
7 | 7 | - '!main' |
8 | 8 |
|
9 | 9 | env: |
10 | | - BUILDER_VERSION: v0.8.0 |
| 10 | + BUILDER_VERSION: v0.8.22 |
11 | 11 | BUILDER_SOURCE: releases |
12 | 12 | BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net |
13 | 13 | PACKAGE_NAME: aws-crt-kotlin |
14 | | - LINUX_BASE_IMAGE: ubuntu-16-x64 |
15 | 14 | RUN: ${{ github.run_id }}-${{ github.run_number }} |
16 | 15 |
|
17 | 16 | jobs: |
18 | 17 | linux-compat: |
19 | 18 | runs-on: ubuntu-latest |
20 | | - strategy: |
21 | | - matrix: |
22 | | - image: |
23 | | - - manylinux2014-x64 |
24 | | - #- manylinux2014-x86 until we find 32-bit linux binaries we can use |
25 | 19 | steps: |
26 | | - # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages |
27 | | - - name: Checkout Sources |
28 | | - uses: actions/checkout@v2 |
29 | | - with: |
30 | | - submodules: true |
31 | | - - name: Build ${{ env.PACKAGE_NAME }} |
32 | | - run: | |
33 | | - echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin |
34 | | - export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ matrix.image }}:${{ env.BUILDER_VERSION }} |
35 | | - docker pull $DOCKER_IMAGE |
36 | | - docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} \ |
37 | | - --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --build-dir=/root/${{ env.PACKAGE_NAME }} --spec=downstream |
| 20 | + - name: Checkout sources |
| 21 | + uses: actions/checkout@v2 |
| 22 | + - uses: actions/cache@v2 |
| 23 | + with: |
| 24 | + path: | |
| 25 | + ~/.gradle/caches |
| 26 | + ~/.gradle/wrapper |
| 27 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
| 28 | + restore-keys: | |
| 29 | + ${{ runner.os }}-gradle- |
| 30 | + - name: Build and Test ${{ env.PACKAGE_NAME }} |
| 31 | + run: | |
| 32 | + python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
| 33 | + chmod a+x builder.pyz |
| 34 | + ./builder.pyz build -p ${{ env.PACKAGE_NAME }} |
38 | 35 |
|
| 36 | + macos-compat: |
| 37 | + runs-on: macos-latest |
| 38 | + steps: |
| 39 | + - name: Checkout sources |
| 40 | + uses: actions/checkout@v2 |
| 41 | + - uses: actions/cache@v2 |
| 42 | + with: |
| 43 | + path: | |
| 44 | + ~/.gradle/caches |
| 45 | + ~/.gradle/wrapper |
| 46 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
| 47 | + restore-keys: | |
| 48 | + ${{ runner.os }}-gradle- |
| 49 | + - name: Build and Test ${{ env.PACKAGE_NAME }} |
| 50 | + run: | |
| 51 | + python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
| 52 | + chmod a+x builder.pyz |
| 53 | + ./builder.pyz build -p ${{ env.PACKAGE_NAME }} |
| 54 | +
|
| 55 | + windows-compat: |
| 56 | + runs-on: windows-latest |
| 57 | + steps: |
| 58 | + - name: Checkout sources |
| 59 | + uses: actions/checkout@v2 |
| 60 | + - name: Build and Test ${{ env.PACKAGE_NAME }} |
| 61 | + run: | |
| 62 | + python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
| 63 | + python3 builder.pyz build -p ${{ env.PACKAGE_NAME }} |
0 commit comments