Debian Codegraph @

crt/s2n/codebuild/spec/buildspec_s2n_tls_bench.yml

raw symbols SCIP
1 ---
2 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. A copy of the License is
6 # located at
7 #
8 # http://aws.amazon.com/apache2.0/
9 #
10 # or in the "license" file accompanying this file. This file is distributed on an
11 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied. See the License for the specific language governing permissions and
13 # limitations under the License.
14 version: 0.2
15
16 env:
17 shell: bash
18
19 phases:
20 install:
21 commands:
22 # Install Rust dependencies
23 - ./codebuild/bin/install_ubuntu_dependencies.sh
24 - source $HOME/.cargo/env
25 - rustup toolchain install stable
26 - rustup override set stable
27 - cargo install cargo-criterion
28
29 # Install Python dependencies
30 - sudo apt install -y python3.12-venv
31 - python3 -m venv .venv
32 - source .venv/bin/activate
33 - pip3 install "boto3[crt]"
34
35 pre_build:
36 commands:
37 - cd bindings/rust/extended
38 - ./generate.sh --skip-tests
39 - cd $CODEBUILD_SRC_DIR
40
41 build:
42 commands:
43 - cd bindings/rust/standard/benchmarks
44 - cargo criterion --message-format json > criterion_output.log
45 - cd $CODEBUILD_SRC_DIR
46
47 post_build:
48 commands:
49 - |
50 python3 .github/bin/criterion_to_cloudwatch.py \
51 --criterion_output_path bindings/rust/standard/benchmarks/criterion_output.log \
52 --namespace s2n-tls-bench \
53 --platform Linux-X64