Skip to content

Commit 20a7ddd

Browse files
author
Justin Boswell
authored
Updated to AWS CRT v0.4.22 (#37)
* Updated to AWS CRT v0.4.22 * Added builder.json and CI workflow
1 parent 513ed5b commit 20a7ddd

3 files changed

Lines changed: 87 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
9+
env:
10+
BUILDER_VERSION: v0.5.2
11+
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
12+
PACKAGE_NAME: aws-iot-device-sdk-java-v2
13+
LINUX_BASE_IMAGE: ubuntu-16-x64
14+
RUN: ${{ github.run_id }}-${{ github.run_number }}
15+
16+
jobs:
17+
linux-compat:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
image:
22+
- manylinux2014-x64
23+
#- manylinux2014-x86 until we find 32-bit linux binaries we can use
24+
steps:
25+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
26+
- name: Build ${{ env.PACKAGE_NAME }}
27+
run: |
28+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
29+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ matrix.image }}:${{ env.BUILDER_VERSION }}
30+
docker pull $DOCKER_IMAGE
31+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }}
32+
33+
al2:
34+
runs-on: ubuntu-latest
35+
steps:
36+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
37+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
38+
run: |
39+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
40+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-al2-x64:${{ env.BUILDER_VERSION }}
41+
docker pull $DOCKER_IMAGE
42+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }}
43+
44+
windows:
45+
runs-on: windows-latest
46+
steps:
47+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
48+
run: |
49+
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
50+
python builder.pyz build -p ${{ env.PACKAGE_NAME }}
51+
52+
osx:
53+
runs-on: macos-latest
54+
steps:
55+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
56+
run: |
57+
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
58+
chmod a+x builder
59+
./builder build -p ${{ env.PACKAGE_NAME }}

builder.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "aws-iot-device-sdk-v2",
3+
"packages": [
4+
"maven"
5+
],
6+
"build_steps": [
7+
"mvn -B compile"
8+
],
9+
"test_steps": [
10+
"mvn -B test"
11+
],
12+
"imports": [
13+
"JDK8"
14+
],
15+
"hosts": {
16+
"ubuntu": {
17+
"packages": [
18+
"openjdk-8-jdk-headless"
19+
]
20+
},
21+
"debian": {
22+
"packages": [
23+
"openjdk-8-jdk-headless"
24+
]
25+
}
26+
}
27+
}

sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<dependency>
4242
<groupId>software.amazon.awssdk.crt</groupId>
4343
<artifactId>aws-crt</artifactId>
44-
<version>0.4.13</version>
44+
<version>0.4.22</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
<dependency>

0 commit comments

Comments
 (0)