Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more just scripts for building and installing locks runtime #156

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ Download the VS Code extension from the [latest build](https://github.com/kyleec
- `$ just run-playground` Build and run playground
- `$ just build-docker` Build docker image
- `$ just run-repl-docker` Run `locks repl` inside built docker image
- `$ just install` Create a release build of locks and move it to `~/.cargo/bin`
- `$ just install-debug` Create a debug build of locks and move it to `~/.cargo/bin`
- `$ just install-trace` Create a debug build of locks with `gc-trace` & `vm-trace` features enabled then move it to `~/.cargo/bin`

## Forked

Expand Down
28 changes: 25 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
default:
@just --list

install: build
mv target/release/locks.exe ~/.cargo/bin
[unix]
move-release:
mv target/debug/locks ~/.cargo/bin

install-debug: build-debug
[windows]
move-release:
mv target/debug/locks.exe ~/.cargo/bin

install: build && move-release
echo 'Installed Locks (Release)'

[unix]
move-debug:
mv target/debug/locks ~/.cargo/bin

[windows]
move-debug:
mv target/debug/locks.exe ~/.cargo/bin

install-debug: build-debug && move-debug
echo 'Installed Locks (Debug)'

install-trace: build-trace && move-debug
echo 'Installed Locks (Trace)'

build:
cargo build --release

build-debug:
cargo build

build-trace:
cargo build --features=gc-trace,vm-trace

build-docker:
docker build -t kyleect/locks:1.0.0 .

Expand Down
Loading