29 lines
926 B
Bash
29 lines
926 B
Bash
#!/bin/bash
|
|
# .devcontainer/setup.sh
|
|
set -euo pipefail
|
|
|
|
echo "=== Installing system deps ==="
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential pkg-config libssl-dev \
|
|
texlive-latex-base texlive-latex-extra \
|
|
texlive-fonts-recommended texlive-bibtex-extra \
|
|
lmodern biber gcc-aarch64-linux-gnu
|
|
|
|
echo "=== Configuring Rust Target ==="
|
|
# 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 ==="
|
|
python3 -m venv "$HOME/.venv/quic_ecs"
|
|
source "$HOME/.venv/quic_ecs/bin/activate"
|
|
pip install --quiet -r requirements.txt
|
|
|
|
echo "=== First Cargo build ==="
|
|
/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 ===" |