Skip to content

Commit ed43dbb

Browse files
authored
Add AWS CodeBuild workflow and Dockerfile for ArchLinux (#161)
1 parent 4668e1a commit ed43dbb

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

ci/codebuild/arch-linux.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 0.2
2+
# This uses the docker image specified in ci/docker/arch-linux
3+
phases:
4+
build:
5+
commands:
6+
- echo Build started on `date`
7+
- ./ci/codebuild/build.sh -DTEST_RESOURCE_PREFIX=lambda-cpp-archbtw
8+
- ./ci/codebuild/run-tests.sh aws-lambda-package-lambda-test-fun
9+
- echo Build completed on `date`

ci/codebuild/build.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ set -euo pipefail
66
cd $CODEBUILD_SRC_DIR
77
mkdir build
88
cd build
9-
cmake .. -GNinja -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/install $@
9+
cmake .. -GNinja \
10+
-DBUILD_SHARED_LIBS=ON \
11+
-DCMAKE_BUILD_TYPE=Debug \
12+
-DENABLE_TESTS=ON \
13+
-DCMAKE_INSTALL_PREFIX=/install $@
1014
ninja
1115
ninja install

ci/docker/arch-linux

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM public.ecr.aws/docker/library/archlinux:latest
2+
3+
RUN pacman -Sy --noconfirm git
4+
RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git
5+
RUN pacman -Sy --noconfirm \
6+
cmake \
7+
ninja \
8+
clang \
9+
curl \
10+
zip
11+
12+
13+
# Note: (2022-08-23)
14+
# Using -DUSE_OPENSSL=OFF as a workaround to an AWS SDK dependency issue with this distro.
15+
# The current SDK version has a dependency on a static build version of openssl, not available through pacman.
16+
# ref: https://github.com/aws/aws-sdk-cpp/issues/1910
17+
RUN CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -Saws-sdk-cpp -Baws-sdk-cpp/build -GNinja \
18+
-DBUILD_ONLY=lambda \
19+
-DUSE_OPENSSL=OFF \
20+
-DENABLE_TESTING=OFF
21+
RUN cmake --build aws-sdk-cpp/build -t install
22+

0 commit comments

Comments
 (0)