File tree 3 files changed +15
-18
lines changed
3 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 11
11
12
12
strategy :
13
13
matrix :
14
- os : [macos-11, macos-latest]
14
+ # macos-latest-large is the latest intel based runner
15
+ os : [macos-13, macos-latest-large]
15
16
openssl_version :
[[email protected] ]
16
17
17
18
steps :
@@ -48,17 +49,17 @@ jobs:
48
49
mkdir -p build-aws-sdk-cpp || true
49
50
mkdir -p install || true
50
51
cd build-aws-sdk-cpp
51
- cmake -G Xcode -DTARGET_ARCH="APPLE" -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON ../aws-sdk-cpp
52
+ cmake -G Xcode -DTARGET_ARCH="APPLE" -DBUILD_SHARED_LIBS=ON -DBUILD_ONLY="kms" -DENABLE_UNITY_BUILD=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/install ../aws-sdk-cpp
52
53
xcodebuild -target ALL_BUILD
53
54
xcodebuild -target install
54
55
55
56
- name : Build C-ESDK
56
57
env :
57
58
OPENSSL_VERSION : ${{ matrix.openssl_version }}
58
- # TODO-RS: Figure out how to safely add AWS credentials and add -DAWS_ENC_SDK_END_TO_END_TESTS=ON and -DAWS_ENC_SDK_KNOWN_GOOD_TESTS=ON
59
+ # TODO-RS: Figure out how to safely add AWS credentials and add -DAWS_ENC_SDK_END_TO_END_TESTS=ON and -DAWS_ENC_SDK_KNOWN_GOOD_TESTS=ON
59
60
run : |
60
61
mkdir build-aws-encryption-sdk-c || true
61
62
cd build-aws-encryption-sdk-c
62
- cmake -G Xcode -DBUILD_SHARED_LIBS=ON -DOPENSSL_ROOT_DIR="/usr/local/opt/${OPENSSL_VERSION}" ../
63
+ cmake -G Xcode -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DCMAKE_PREFIX_PATH=${{github.workspace}}/install - DOPENSSL_ROOT_DIR="/usr/local/opt/${OPENSSL_VERSION}" ../
63
64
xcodebuild -target ALL_BUILD
64
65
xcodebuild -scheme RUN_TESTS
Original file line number Diff line number Diff line change 15
15
cmake_minimum_required (VERSION 3.9)
16
16
project (aws-encryption-sdk LANGUAGES C)
17
17
18
- if (UNIX AND NOT APPLE )
19
- include (GNUInstallDirs)
20
- elseif (NOT DEFINED CMAKE_INSTALL_LIBDIR)
21
- set (CMAKE_INSTALL_LIBDIR "lib" )
22
- endif ()
23
-
18
+ include (GNUInstallDirs)
24
19
include (CTest)
25
20
26
21
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
27
22
23
+ # This was required for older versions of aws-c-common and fixed in the latest versions.
24
+ # Remove this hack, after updating our CodeBuild tests to use the latest version of aws-c-common.
28
25
# Make sure we can pick up Cmake modules installed by dependencies
29
26
# both when they are in the CMAKE_INSTALL_PREFIX directory
30
27
# and in the CMAKE_PREFIX_PATH list.
Original file line number Diff line number Diff line change @@ -42,17 +42,16 @@ function(aws_install_target)
42
42
endforeach (HEADER_SRCPATH)
43
43
44
44
install (TARGETS ${AWS_INSTALL_TARGET} EXPORT ${AWS_INSTALL_TARGET} -targets
45
- ARCHIVE DESTINATION "${LIBRARY_DIRECTORY } "
46
- LIBRARY DESTINATION "${LIBRARY_DIRECTORY } "
47
- RUNTIME DESTINATION "${RUNTIME_DIRECTORY } " )
48
-
45
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR } "
46
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR } "
47
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR } " )
48
+
49
49
configure_file ("${PROJECT_SOURCE_DIR} /cmake/${AWS_INSTALL_TARGET} -config.cmake"
50
50
"${CMAKE_CURRENT_BINARY_DIR} /${AWS_INSTALL_TARGET} -config.cmake" @ONLY)
51
-
52
- install (EXPORT "${AWS_INSTALL_TARGET} -targets" DESTINATION "${LIBRARY_DIRECTORY} /${AWS_INSTALL_TARGET} /cmake/"
51
+ install (EXPORT "${AWS_INSTALL_TARGET} -targets" DESTINATION "${CMAKE_INSTALL_LIBDIR} /${AWS_INSTALL_TARGET} /cmake/"
53
52
NAMESPACE AWS::
54
53
)
55
-
54
+
56
55
install (FILES "${CMAKE_CURRENT_BINARY_DIR} /${AWS_INSTALL_TARGET} -config.cmake"
57
- DESTINATION "${LIBRARY_DIRECTORY } /${AWS_INSTALL_TARGET} /cmake/" )
56
+ DESTINATION "${CMAKE_INSTALL_LIBDIR } /${AWS_INSTALL_TARGET} /cmake/" )
58
57
endfunction (aws_install_target)
You can’t perform that action at this time.
0 commit comments