Update .devcontainer/setup.sh
This commit is contained in:
@@ -11,27 +11,19 @@ sudo apt-get install -y --no-install-recommends \
|
||||
lmodern biber gcc-aarch64-linux-gnu
|
||||
|
||||
echo "=== Configuring Rust Target ==="
|
||||
# Rust is already installed by the Devcontainer feature
|
||||
rustup target add aarch64-unknown-linux-gnu
|
||||
|
||||
echo "=== Installing Quarto ==="
|
||||
QUARTO_VER="1.8.0"
|
||||
if ! command -v quarto &>/dev/null; then
|
||||
curl -LO "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VER}/quarto-${QUARTO_VER}-linux-amd64.deb"
|
||||
sudo dpkg -i "quarto-${QUARTO_VER}-linux-amd64.deb"
|
||||
rm "quarto-${QUARTO_VER}-linux-amd64.deb"
|
||||
fi
|
||||
# Using absolute path ensures this works in non-interactive scripts
|
||||
/usr/local/cargo/bin/rustup target add aarch64-unknown-linux-gnu
|
||||
|
||||
echo "=== Installing Python deps ==="
|
||||
# Python is installed by the Devcontainer feature
|
||||
python3 -m venv "$HOME/.venv/quic_ecs"
|
||||
source "$HOME/.venv/quic_ecs/bin/activate"
|
||||
pip install --quiet -r requirements.txt
|
||||
|
||||
echo "=== First Cargo build ==="
|
||||
cargo build --release 2>&1 | tail -5
|
||||
/usr/local/cargo/bin/cargo build --release 2>&1 | tail -5
|
||||
|
||||
echo "=== Quarto check ==="
|
||||
# Quarto was installed in the build phase, so this will succeed immediately
|
||||
quarto check
|
||||
|
||||
echo "=== Done — workspace ready ==="
|
||||
Reference in New Issue
Block a user