leetcode/justfile

27 lines
377 B
Makefile
Raw Permalink Normal View History

2024-08-24 11:52:03 +08:00
#!/usr/bin/env just --justfile
2024-09-12 14:13:49 +08:00
update:
git pull
build: update
2024-08-24 11:52:03 +08:00
cargo build --release
2024-10-24 09:08:13 +08:00
fmt:
cargo fmt
test: fmt
2024-08-24 11:52:03 +08:00
cargo test
2024-10-24 09:08:13 +08:00
commit: test
2024-08-24 11:52:03 +08:00
#!/usr/bin/env bash
set -euxo pipefail
time=$(date "+%Y%m%d")
message="$time finished."
git add -A
git commit -m "$message"
git push
pull id: build
2024-10-24 09:08:13 +08:00
./target/release/leetcode-rust {{id}}