1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
---
# 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"
OPENSSL_DIR: "/usr/local/openssl-3.0"
RUST_TOOLCHAIN: "1.63.0-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
pre_build:
commands:
- |
cd bindings/rust/extended
./generate.sh
cargo clean
build:
commands:
- cargo build --timings
post_build:
commands:
- cargo test --timings
artifacts:
# upload timing reports
files:
- "**/*"
base-directory: bindings/rust/extended/target/cargo-timings
|