-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (39 loc) · 1.05 KB
/
Justfile
File metadata and controls
52 lines (39 loc) · 1.05 KB
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
# lite3-zig task automation
# Build the library
build:
zig build
# Run all tests (Debug mode)
test:
zig build test
# Run tests with ReleaseSafe optimization
test-release:
zig build test -Doptimize=ReleaseSafe
# Run tests with ReleaseFast optimization
test-fast:
zig build test -Doptimize=ReleaseFast
# Run tests with JSON support disabled
test-no-json:
zig build test -Djson=false
# Run all test variants
test-all: test test-release test-fast test-no-json
# Run the local GitHub Actions CI workflow with act
act-local:
act -W .github/workflows/ci-local.yml
# Build example programs
examples:
zig build examples
# Clean build artifacts
clean:
rm -rf .zig-cache zig-out
# Update vendored lite3 sources from upstream
update-vendor:
@echo "Vendored sources are in vendor/lite3/. Update manually from upstream."
# Run benchmarks
bench:
zig build bench
# Check source formatting
fmt-check:
zig fmt --check src/lite3.zig src/tests.zig src/bench.zig
# Format source files
fmt:
zig fmt src/lite3.zig src/tests.zig src/bench.zig