summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-02 21:25:08 +0000
committerGitHub <noreply@github.com>2021-08-02 21:25:08 +0000
commita7bc8de4e77d5c0fb6313d6fc42977543c9df5c4 (patch)
tree4d74285ded6a2f54a2abb70331f9cfe90d1def4b /.devcontainer
parenta8098903cd39114b4daeae2311f3f517566105d7 (diff)
downloadlibgit2-a7bc8de4e77d5c0fb6313d6fc42977543c9df5c4.tar.gz
Update VSCode / Github Codespaces workflow
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/devcontainer.json2
-rwxr-xr-x.devcontainer/setup.sh9
2 files changed, 10 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 2731eabd3..bc6344b93 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,3 +1,3 @@
{
- "postCreateCommand": "sudo apt-get update && sudo apt-get -y --no-install-recommends install cmake"
+ "postCreateCommand": "bash .devcontainer/setup.sh"
}
diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh
new file mode 100755
index 000000000..c328bf3b9
--- /dev/null
+++ b/.devcontainer/setup.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+sudo apt-get update
+sudo apt-get -y --no-install-recommends install cmake
+
+mkdir build
+cd build
+cmake .. \ No newline at end of file