Minor tweaks

This commit is contained in:
Pranav Gaddamadugu 2024-11-19 08:18:06 -08:00
parent c532c01e90
commit 16b882be79

View File

@ -36,23 +36,27 @@ executors:
resource_class: xlarge resource_class: xlarge
commands: commands:
install-rust: install-rust-macos:
description: "Install Rust (Linux/macOS)" description: "Install Rust (Linux/macOS)"
steps: steps:
- run: - run:
name: Install Rust name: Install Rust
command: | command: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # If Rust is not installed on the machine, install it
source "$HOME/.cargo/env" if ! command -v rustc &> /dev/null; then
rustup install 1.82.0 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup override set 1.82.0 source "$HOME/.cargo/env"
cargo --version --verbose rustup install 1.82.0
rustc --version rustup override set 1.82.0
cargo --version --verbose
rustc --version
fi
if [ ! -f "Cargo.lock" ]; then if [ ! -f "Cargo.lock" ]; then
cargo generate-lockfile cargo generate-lockfile
fi fi
cargo install cargo-mtime cargo install cargo-mtime
install-rust-windows: install-rust-windows:
description: "Install Rust (Windows)" description: "Install Rust (Windows)"
@ -148,6 +152,7 @@ jobs:
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }} - cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
- cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }} - cargo-v1-{{ arch }}-{{ checksum "Cargo.toml" }}
- cargo-v1-{{ arch }} - cargo-v1-{{ arch }}
- install-rust
- run: - run:
name: Update Submodules name: Update Submodules
command: git submodule update --init --recursive command: git submodule update --init --recursive