File tree 2 files changed +21
-4
lines changed
.github/docker_images/cmake_build_versions
2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 6
6
set -ex -o pipefail
7
7
8
8
echo " Building with CMake Version: $( cmake --version) "
9
+ FIPS_BUILD=1
10
+ if cmake --version | grep -q " 4." ; then
11
+ echo " CMake version is 4.x, skipping FIPS build"
12
+ FIPS_BUILD=0
13
+ fi
9
14
10
15
. " ${HOME} /.cargo/env"
11
16
SRC_DIR=" ${SRC_DIR:-/ aws_lc_rs} "
@@ -15,11 +20,16 @@ pushd "${SRC_DIR}"
15
20
cargo clean
16
21
cargo test -p aws-lc-rs --features=unstable
17
22
cargo clean
18
- cargo test -p aws-lc-rs --features=unstable,fips
19
- cargo clean
23
+ if [ ${FIPS_BUILD} -eq 1 ]; then
24
+ cargo test -p aws-lc-rs --features=unstable,fips
25
+ cargo clean
26
+ fi
20
27
cargo test -p aws-lc-rs --release --features=unstable
21
28
cargo clean
22
- cargo test -p aws-lc-rs --release --features=unstable,fips
29
+ if [ ${FIPS_BUILD} -eq 1 ]; then
30
+ cargo test -p aws-lc-rs --release --features=unstable,fips
31
+ cargo clean
32
+ fi
23
33
24
34
25
35
popd # ${BUILD_DIR}
Original file line number Diff line number Diff line change 1
1
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
# SPDX-License-Identifier: Apache-2.0 OR ISC
3
3
4
- cmake_minimum_required (VERSION 3.0)
4
+ cmake_minimum_required (VERSION 3.5...3.31)
5
+
6
+ if (CMAKE_VERSION VERSION_GREATER "3.14" )
7
+ # https://cmake.org/cmake/help/latest/policy/CMP0091.html
8
+ # In CMake 3.14 and below, MSVC runtime library selection flags are added to the default CMAKE_<LANG>_FLAGS_<CONFIG>
9
+ # cache entries by CMake automatically.
10
+ cmake_policy (SET CMP0091 OLD)
11
+ endif ()
5
12
6
13
project (AWS_LC_RUST NONE)
7
14
enable_language (C)
You can’t perform that action at this time.
0 commit comments