forked from skot/mujina
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (27 loc) · 758 Bytes
/
Copy pathjustfile
File metadata and controls
35 lines (27 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
_default:
@just --list --unsorted
[group('dev')]
fmt *args:
cargo fmt {{args}}
[group('dev')]
lint:
cargo clippy --release -- -D warnings
[group('dev')]
test:
cargo test
# Run all checks (before commit, push, merge, release)
[group('dev')]
@checks: (fmt "--check") lint test
[group('dev')]
run:
cargo run --bin mujina-minerd
[group('container')]
container-build tag=`git rev-parse --abbrev-ref HEAD`:
podman build -t mujina-minerd:{{tag}} -f Containerfile .
[group('container')]
container-push tag=`git rev-parse --abbrev-ref HEAD`:
podman tag mujina-minerd:{{tag}} ghcr.io/256foundation/mujina-minerd:{{tag}}
podman push ghcr.io/256foundation/mujina-minerd:{{tag}}
[group('setup')]
hooks:
./scripts/setup-hooks.sh