Skip to content

Commit f0ab8fc

Browse files
authored
Update C and CRT dependencies (#102)
* Update C and CRT dependencies
1 parent 327605b commit f0ab8fc

File tree

4 files changed

+136
-1
lines changed

4 files changed

+136
-1
lines changed

.github/workflows/ci.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
9+
env:
10+
BUILDER_VERSION: v0.6.0
11+
BUILDER_SOURCE: releases
12+
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
13+
PACKAGE_NAME: aws-iot-device-sdk-cpp-v2
14+
LINUX_BASE_IMAGE: ubuntu-16-x64
15+
RUN: ${{ github.run_id }}-${{ github.run_number }}
16+
17+
jobs:
18+
linux-compat:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
image:
23+
- manylinux1-x64
24+
- manylinux1-x86
25+
- manylinux2014-x64
26+
- manylinux2014-x86
27+
steps:
28+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
29+
- name: Build ${{ env.PACKAGE_NAME }}
30+
run: |
31+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
32+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ matrix.image }}:${{ env.BUILDER_VERSION }}
33+
docker pull $DOCKER_IMAGE
34+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }}
35+
36+
al2:
37+
runs-on: ubuntu-latest
38+
steps:
39+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
40+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
41+
run: |
42+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
43+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-al2-x64:${{ env.BUILDER_VERSION }}
44+
docker pull $DOCKER_IMAGE
45+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} al2-default-default-default-default-downstream
46+
47+
clang-compat:
48+
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
version: [3, 6, 8, 9]
52+
steps:
53+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
54+
- name: Build ${{ env.PACKAGE_NAME }}
55+
run: |
56+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
57+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }}
58+
docker pull $DOCKER_IMAGE
59+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} linux-clang-${{ matrix.version }}-linux-x64 --config Debug
60+
61+
gcc-compat:
62+
runs-on: ubuntu-latest
63+
strategy:
64+
matrix:
65+
version: [4.8, 5, 6, 7, 8]
66+
steps:
67+
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
68+
- name: Build ${{ env.PACKAGE_NAME }}
69+
run: |
70+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin
71+
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }}
72+
docker pull $DOCKER_IMAGE
73+
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} linux-gcc-${{ matrix.version }}-linux-x64
74+
75+
windows:
76+
runs-on: windows-latest
77+
steps:
78+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
79+
run: |
80+
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder.pyz')"
81+
python builder.pyz build -p ${{ env.PACKAGE_NAME }} default-downstream
82+
83+
osx:
84+
runs-on: macos-latest
85+
steps:
86+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
87+
run: |
88+
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
89+
chmod a+x builder
90+
./builder build -p ${{ env.PACKAGE_NAME }} default-downstream
91+
92+

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
clang-format:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Sources
12+
uses: actions/checkout@v1
13+
14+
- name: clang-format lint
15+
uses: DoozyX/clang-format-lint-action@v0.3.1
16+
with:
17+
# List of extensions to check
18+
extensions: c,h

builder.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "aws-iot-device-sdk-cpp-v2",
3+
"!cmake_args": [
4+
"-DBUILD_DEPS=ON",
5+
"-DPERFORM_HEADER_CHECK=OFF",
6+
"-DS2N_NO_PQ_ASM=ON"
7+
],
8+
"targets": {
9+
"linux" : {
10+
"imports": [
11+
"s2n"
12+
]
13+
}
14+
},
15+
"search_dirs": ["aws-common-runtime"],
16+
"hosts": {
17+
"manylinux": {
18+
"architectures": {
19+
"x86": {
20+
"!yum_compiler_packages": []
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)