-
Notifications
You must be signed in to change notification settings - Fork 5
/
.justfile
53 lines (42 loc) · 898 Bytes
/
.justfile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
CWD := invocation_directory()
BIN_NAME := "fox32asm"
# Lists the available recipes
[no-cd]
[no-exit-message]
[private]
default:
#!/usr/bin/env bash
set -euo pipefail
printf "Current directory:\n {{CWD}}\n"
just --list
# Builds the assembler binary
[no-exit-message]
build *ARGS:
#!/usr/bin/env bash
set -euo pipefail
cargo build --bin {{BIN_NAME}} {{ARGS}}
# Run tests for the assembler
[no-exit-message]
test *ARGS:
#!/usr/bin/env bash
set -euo pipefail
cargo test -- --test-threads=1 {{ARGS}}
# Apply Rustfmt to the code
[no-exit-message]
fmt *ARGS:
#!/usr/bin/env bash
set -euo pipefail
cargo fmt {{ARGS}}
# Check Rustfmt for the code
[no-exit-message]
lint *ARGS:
#!/usr/bin/env bash
set -euo pipefail
cargo clippy {{ARGS}}
# Build ZIP releases in GitHub actions
[no-exit-message]
[private]
build-release:
#!/usr/bin/env bash
set -euo pipefail
lune run release