Skip to content

Commit

Permalink
chore(ci): cargo timing cb job
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Mar 11, 2025
1 parent c8de638 commit d7ea0c5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions codebuild/spec/cargotiming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
version: 0.2
env:
shell: bash
variables:
# This assumes you have a Rust toolchain installed
CARGO: "cargo +nightly"
RUST_TOOLCHAIN: "1.74.1-x86_64-unknown-linux-gnu"
phases:
install:
commands:
- echo "Installing Rust ..."
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- . $HOME/.cargo/env
- rustup toolchain install $RUST_TOOLCHAIN
build:
commands:
- cargo build --timings
post_build:
commands:
- cargo test --exclude s2n-quic-platform --workspace

artifacts:
# upload timing reports
files:
- '**/*'
base-directory: target/cargo-timings

0 comments on commit d7ea0c5

Please sign in to comment.