Skip to content
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

ci: Add ubuntu24 with a new cmake buildspec #4820

Closed
wants to merge 1 commit into from
Closed
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
20 changes: 20 additions & 0 deletions codebuild/spec/buildspec_generalbatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,26 @@ batch:
S2N_LIBCRYPTO: openssl-3.0
TESTS: unit
identifier: s2nUnitOpenssl3Gcc9
- env:
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu24codebuild
privileged-mode: true
variables:
BUILD_S2N: 'true'
GCC_VERSION: '13'
S2N_LIBCRYPTO: 'openssl-3.0'
TESTS: unit
identifier: s2nUnitOpenss3Gcc13
- env:
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu24codebuild
privileged-mode: true
variables:
BUILD_S2N: 'true'
GCC_VERSION: '13'
S2N_LIBCRYPTO: 'awslc'
TESTS: unit
identifier: s2nUnitAwslcGcc13
- buildspec: codebuild/spec/buildspec_amazonlinux.yml
env:
compute-type: BUILD_GENERAL1_LARGE
Expand Down
29 changes: 29 additions & 0 deletions codebuild/spec/buildspec_ubuntu_cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing permissions and
# limitations under the License.
version: 0.2

phases:
build:
on-failure: ABORT
commands:
- |
cmake . -Bbuild \
-DCMAKE_C_COMPILER=/usr/bin/$COMPILER \
-DCMAKE_PREFIX_PATH=/usr/local/$S2N_LIBCRYPTO \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build ./build -- -j $(nproc)
post_build:
on-failure: ABORT
commands:
- CTEST_OUTPUT_ON_FAILURE=1 CTEST_PARALLEL_LEVEL=$(nproc) make -C build test
Loading