-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update C and CRT dependencies (#102)
* Update C and CRT dependencies
- Loading branch information
1 parent
327605b
commit f0ab8fc
Showing
4 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
|
||
env: | ||
BUILDER_VERSION: v0.6.0 | ||
BUILDER_SOURCE: releases | ||
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | ||
PACKAGE_NAME: aws-iot-device-sdk-cpp-v2 | ||
LINUX_BASE_IMAGE: ubuntu-16-x64 | ||
RUN: ${{ github.run_id }}-${{ github.run_number }} | ||
|
||
jobs: | ||
linux-compat: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: | ||
- manylinux1-x64 | ||
- manylinux1-x86 | ||
- manylinux2014-x64 | ||
- manylinux2014-x86 | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin | ||
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ matrix.image }}:${{ env.BUILDER_VERSION }} | ||
docker pull $DOCKER_IMAGE | ||
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} | ||
al2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin | ||
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-al2-x64:${{ env.BUILDER_VERSION }} | ||
docker pull $DOCKER_IMAGE | ||
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} al2-default-default-default-default-downstream | ||
clang-compat: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: [3, 6, 8, 9] | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin | ||
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }} | ||
docker pull $DOCKER_IMAGE | ||
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} linux-clang-${{ matrix.version }}-linux-x64 --config Debug | ||
gcc-compat: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: [4.8, 5, 6, 7, 8] | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin | ||
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ env.LINUX_BASE_IMAGE }}:${{ env.BUILDER_VERSION }} | ||
docker pull $DOCKER_IMAGE | ||
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} linux-gcc-${{ matrix.version }}-linux-x64 | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder.pyz')" | ||
python builder.pyz build -p ${{ env.PACKAGE_NAME }} default-downstream | ||
osx: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} default-downstream | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Lint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
clang-format: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: clang-format lint | ||
uses: DoozyX/clang-format-lint-action@v0.3.1 | ||
with: | ||
# List of extensions to check | ||
extensions: c,h |
Submodule aws-crt-cpp
updated
5 files
+22 −6 | .github/workflows/ci.yml | |
+2 −0 | CMakeLists.txt | |
+1 −1 | aws-common-runtime/aws-c-mqtt | |
+1 −1 | aws-common-runtime/s2n | |
+18 −1 | builder.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "aws-iot-device-sdk-cpp-v2", | ||
"!cmake_args": [ | ||
"-DBUILD_DEPS=ON", | ||
"-DPERFORM_HEADER_CHECK=OFF", | ||
"-DS2N_NO_PQ_ASM=ON" | ||
], | ||
"targets": { | ||
"linux" : { | ||
"imports": [ | ||
"s2n" | ||
] | ||
} | ||
}, | ||
"search_dirs": ["aws-common-runtime"], | ||
"hosts": { | ||
"manylinux": { | ||
"architectures": { | ||
"x86": { | ||
"!yum_compiler_packages": [] | ||
} | ||
} | ||
} | ||
} | ||
} |