Skip to content

Commit

Permalink
Update snp_function_declarations.sh
Browse files Browse the repository at this point in the history
Signed-off-by: LakshmiSaiHarika <[email protected]>
  • Loading branch information
LakshmiSaiHarika authored Nov 14, 2024
1 parent bdde216 commit 15d473a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/snp_function_declarations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ if ! sudo dmesg | grep -i "SEV-SNP enabled" 2>&1 >/dev/null; then
return 1
fi
}

check_rust_on_host() {
# Install Rust on the host
source "${HOME}/.cargo/env" 2>/dev/null || true
if ! command -v rustc &> /dev/null; then
echo "Installing Rust..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s -- -y
source "${HOME}/.cargo/env" 2>/dev/null
fi
}

0 comments on commit 15d473a

Please sign in to comment.