From 2e6d1503c528c660df165c820b8c87bcfb7fd157 Mon Sep 17 00:00:00 2001 From: Justin Boswell Date: Wed, 20 Nov 2019 13:03:57 -0800 Subject: [PATCH 1/3] Use github actions for OSX --- .github/workflows/mac-osx-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/mac-osx-ci.yml diff --git a/.github/workflows/mac-osx-ci.yml b/.github/workflows/mac-osx-ci.yml new file mode 100644 index 00000000..7f2fa754 --- /dev/null +++ b/.github/workflows/mac-osx-ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: [push] + +jobs: + OSX: + + runs-on: macOS-10.14 + + steps: + - name: Checkout Source + uses: actions/checkout@v1 + + - name: Install Dependencies + run: | + brew install llvm + export PATH=$(brew --prefix llvm)/bin:$PATH + + - name: Build and test + run: | + export CODEBUILD_SRC_DIR=$(pwd) + python3 -c "from urllib.request import urlretrieve; urlretrieve('https://raw.githubusercontent.com/awslabs/aws-c-common/master/codebuild/builder.py', 'builder.py')" + python3 builder.py build macos-default-default-macos-x64 From 970dc9893a854e1f72f648a4dccdf4444acf6479 Mon Sep 17 00:00:00 2001 From: Justin Boswell Date: Wed, 20 Nov 2019 13:17:53 -0800 Subject: [PATCH 2/3] Disable deprecation warnings for MD5 --- source/commoncrypto/commoncrypto_md5.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/commoncrypto/commoncrypto_md5.c b/source/commoncrypto/commoncrypto_md5.c index 56d33834..3c4c52ac 100644 --- a/source/commoncrypto/commoncrypto_md5.c +++ b/source/commoncrypto/commoncrypto_md5.c @@ -16,6 +16,9 @@ #include +#pragma clang diagnostic push +#pragma clang diagnostic ignored -Wdeprecated-declarations + static void s_destroy(struct aws_hash *hash); static int s_update(struct aws_hash *hash, const struct aws_byte_cursor *to_hash); static int s_finalize(struct aws_hash *hash, struct aws_byte_buf *output); @@ -83,3 +86,5 @@ static int s_finalize(struct aws_hash *hash, struct aws_byte_buf *output) { output->len += buffer_len; return AWS_OP_SUCCESS; } + +#pragma clang diagnostic pop From c9c1e38d3f8c7c84a2e4e2a598826dfd425fd1ab Mon Sep 17 00:00:00 2001 From: Justin Boswell Date: Wed, 20 Nov 2019 13:21:03 -0800 Subject: [PATCH 3/3] now with less whoops --- source/commoncrypto/commoncrypto_md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/commoncrypto/commoncrypto_md5.c b/source/commoncrypto/commoncrypto_md5.c index 3c4c52ac..3dbc5327 100644 --- a/source/commoncrypto/commoncrypto_md5.c +++ b/source/commoncrypto/commoncrypto_md5.c @@ -17,7 +17,7 @@ #include #pragma clang diagnostic push -#pragma clang diagnostic ignored -Wdeprecated-declarations +#pragma clang diagnostic ignored "-Wdeprecated-declarations" static void s_destroy(struct aws_hash *hash); static int s_update(struct aws_hash *hash, const struct aws_byte_cursor *to_hash);