mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-19 19:44:18 +00:00
Some checks failed
tinymist::auto_tag / auto-tag (push) Has been cancelled
tinymist::ci / Duplicate Actions Detection (push) Has been cancelled
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Has been cancelled
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Has been cancelled
tinymist::ci / prepare-build (push) Has been cancelled
tinymist::gh_pages / build-gh-pages (push) Has been cancelled
tinymist::ci / announce (push) Has been cancelled
tinymist::ci / build (push) Has been cancelled
+tag v0.14.2-rc1
25 lines
790 B
Bash
Executable file
25 lines
790 B
Bash
Executable file
# todo: it is in very early stage, so we are doing dirty things.
|
|
|
|
# python3 ./spec/main.py
|
|
|
|
DOCKER_ARGS=
|
|
if [ "$1" = "test" ]; then
|
|
DOCKER_ARGS="python3 ./spec/main.py"
|
|
elif [ "$1" = "bash" ]; then
|
|
DOCKER_ARGS="bash"
|
|
elif [ "$1" = "editor" ]; then
|
|
DOCKER_ARGS="nvim ."
|
|
else
|
|
echo "Usage: $0 [test|bash|editor]"
|
|
exit 1
|
|
fi
|
|
|
|
(cd ../.. && docker build -t myriaddreamin/tinymist:0.14.2-rc1 .)
|
|
(cd samples && docker build -t myriaddreamin/tinymist-nvim:0.14.2-rc1 -f lazyvim-dev/Dockerfile .)
|
|
docker run --rm -it \
|
|
-v $PWD/../../tests/workspaces:/home/runner/dev/workspaces \
|
|
-v $PWD:/home/runner/dev \
|
|
-v $PWD/target/.local:/home/runner/.local \
|
|
-v $PWD/target/.cache:/home/runner/.cache \
|
|
-w /home/runner/dev myriaddreamin/tinymist-nvim:0.14.2-rc1 \
|
|
$DOCKER_ARGS
|