| 1 |
--- |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
version: 0.2 |
| 15 |
|
| 16 |
env: |
| 17 |
shell: bash |
| 18 |
|
| 19 |
phases: |
| 20 |
install: |
| 21 |
commands: |
| 22 |
|
| 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 |
|
| 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 |