Skip to content

Commit 4c34bf2

Browse files
CopilotKSXGitHub
andcommitted
Add GitHub Codespaces devcontainer configuration
Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>
1 parent d76e2a7 commit 4c34bf2

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "parallel-disk-usage",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/rust:1": {
6+
"version": "none",
7+
"profile": "default"
8+
},
9+
"ghcr.io/devcontainers/features/node:1": {
10+
"version": "lts",
11+
"nodeGypDependencies": true
12+
},
13+
"ghcr.io/devcontainers/features/python:1": {
14+
"version": "latest",
15+
"installTools": true
16+
},
17+
"ghcr.io/devcontainers-contrib/features/shellcheck:1": {},
18+
"ghcr.io/devcontainers-contrib/features/shfmt:1": {}
19+
},
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
"rust-lang.rust-analyzer",
24+
"timonwong.shellcheck",
25+
"mkhl.shfmt"
26+
]
27+
}
28+
},
29+
"postCreateCommand": "bash .devcontainer/post-create.sh"
30+
}

.devcontainer/post-create.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Install Python dependencies
5+
pip install toml
6+
7+
# Install pnpm and project Node dependencies
8+
npm install -g pnpm
9+
(cd ci/github-actions && pnpm install)
10+
11+
# Install hyperfine via Cargo
12+
cargo install hyperfine

0 commit comments

Comments
 (0)