-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
25 lines (19 loc) · 768 Bytes
/
justfile
File metadata and controls
25 lines (19 loc) · 768 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
import '../justfiles/go.just'
# Build ldflags string
_VERSION_META_STR := if VERSION_META != "" { "+" + VERSION_META } else { "" }
_LDFLAGSSTRING := "'" + trim(
"-X main.GitCommit=" + GITCOMMIT + " " + \
"-X main.GitDate=" + GITDATE + " " + \
"-X github.com/ethereum-optimism/optimism/op-challenger/version.Version=" + VERSION + " " + \
"-X github.com/ethereum-optimism/optimism/op-challenger/version.Meta=" + _VERSION_META_STR + " " + \
"") + "'"
BINARY := "./bin/op-challenger"
# Build op-challenger binary
op-challenger: (go_build BINARY "./cmd" "-ldflags" _LDFLAGSSTRING)
# Run fuzzing tests
fuzz: (go_fuzz "FuzzKeccak" "10s" "./game/keccak/matrix")
# Clean build artifacts
clean:
rm -f {{BINARY}}
# Run tests
test: (go_test "./...")