-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
46 lines (33 loc) · 985 Bytes
/
Justfile
File metadata and controls
46 lines (33 loc) · 985 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
36
37
38
39
40
41
42
43
44
45
46
default: test-compiler
x:
just test-docker
ci:
just
quick:
SKIP_RUN=1 just test-compiler
update:
UPDATE=1 just test-compiler
test-compiler:
bun run test.ts
run NAME:
bun easyc.ts tests/{{ NAME }}/test.easy \
&& cc -std=c23 tests/{{ NAME }}/test.c -o tests/{{ NAME }}/test.exe -I . -g -fsanitize=address \
&& ./tests/{{ NAME }}/test.exe
life:
bun easyc.ts life.easy && clang -std=c23 life.c -o life && ./life
clean:
git clean -Xf
test-docker:
docker build --platform linux/amd64 -t easy . && docker run --platform linux/amd64 --rm easy
build-playground:
bun run build:playground
playground: build-playground
python3 -m http.server -d docs
build:
bun run build
# Build, bump patch version, and publish to npm.
# --access=public is required for scoped packages (@begoon/easyc) since
# npm defaults scoped names to private.
publish: quick build
npm version patch --no-git-tag-version
npm publish --access=public