Skip to content

Commit aef556d

Browse files
committed
chore(ci): cargo timing cb job
1 parent 8129a20 commit aef556d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

codebuild/spec/cargotiming.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
phases:
11+
install:
12+
commands:
13+
- which cargo || true
14+
- echo "Installing Rust ..."
15+
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
16+
- . $HOME/.cargo/env
17+
build:
18+
commands:
19+
- cargo build --timings
20+
post_build:
21+
commands:
22+
- cargo test --timings
23+
24+
artifacts:
25+
# upload timing reports
26+
files:
27+
- '**/*'
28+
base-directory: target/cargo-timings
29+

0 commit comments

Comments
 (0)