Skip to content

Commit d7ea0c5

Browse files
committed
chore(ci): cargo timing cb job
1 parent c8de638 commit d7ea0c5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

codebuild/spec/cargotiming.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
# SPDX-License-Identifier: Apache-2.0
4+
version: 0.2
5+
env:
6+
shell: bash
7+
variables:
8+
# This assumes you have a Rust toolchain installed
9+
CARGO: "cargo +nightly"
10+
RUST_TOOLCHAIN: "1.74.1-x86_64-unknown-linux-gnu"
11+
phases:
12+
install:
13+
commands:
14+
- echo "Installing Rust ..."
15+
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
16+
- . $HOME/.cargo/env
17+
- rustup toolchain install $RUST_TOOLCHAIN
18+
build:
19+
commands:
20+
- cargo build --timings
21+
post_build:
22+
commands:
23+
- cargo test --exclude s2n-quic-platform --workspace
24+
25+
artifacts:
26+
# upload timing reports
27+
files:
28+
- '**/*'
29+
base-directory: target/cargo-timings
30+

0 commit comments

Comments
 (0)