Skip to content

Commit

Permalink
Merge pull request #20 from awslabs/github-actions
Browse files Browse the repository at this point in the history
Use github actions for OSX
  • Loading branch information
Justin Boswell authored Nov 20, 2019
2 parents 7e2e4f4 + c9c1e38 commit 9a7a7bd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/mac-osx-ci.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions source/commoncrypto/commoncrypto_md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#include <CommonCrypto/CommonDigest.h>

#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);
Expand Down Expand Up @@ -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

0 comments on commit 9a7a7bd

Please sign in to comment.