Skip to content

Enable alpine ci #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ endif()

target_include_directories(${PROJECT_NAME} PRIVATE ${CURL_INCLUDE_DIRS})

find_package(Backtrace REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE ${Backtrace_LIBRARIES})

target_compile_options(${PROJECT_NAME} PRIVATE
"-fno-exceptions"
"-fno-rtti"
Expand Down
16 changes: 16 additions & 0 deletions ci/codebuild/alpine-3.15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 0.2
# This uses the docker image specified in ci/docker/alpine-linux-3.15
phases:
pre_build:
commands:
- pip install awscli
- ci/codebuild/build-cpp-sdk.sh
build:
commands:
- echo Build started on `date`
- ci/codebuild/build.sh -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_TESTS=ON -DTEST_RESOURCE_PREFIX=alpine315
- ci/codebuild/run-tests.sh aws-lambda-package-lambda-test-fun alpine315
post_build:
commands:
- echo Build completed on `date`

5 changes: 5 additions & 0 deletions ci/docker/alpine-linux-3.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.15

RUN apk add --no-cache g++ cmake git bash py3-pip libexecinfo-dev ninja curl-dev zlib-dev zip

RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git
5 changes: 0 additions & 5 deletions ci/docker/alpine-linux-3.8

This file was deleted.

3 changes: 2 additions & 1 deletion packaging/packager
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function pluck_so_files() {
}

function package_libc_alpine() {
if grep --fixed-strings "Alpine Linux" < /etc/os-release > /dev/null; then
# -F matches a fixed string rather than a regex (grep that comes with busybox doesn't know --fixed-strings)
if grep -F "Alpine Linux" < /etc/os-release > /dev/null; then
if type apk > /dev/null 2>&1; then
apk info --contents musl 2>/dev/null | pluck_so_files | sed 's/^/\//'
fi
Expand Down