-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.justfile
35 lines (27 loc) · 815 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
set shell := ["/bin/bash", "-c"]
# --------------------------------------------------------------------------------------------------
_help:
@just --list
_copy-assets target:
@cp -r assets/ cmd/{{ target }}/assets
# --------------------------------------------------------------------------------------------------
# list all available targets
list:
#!/bin/bash
for d in cmd/*; do
echo $(basename $d)
done
# build a specific target
build target:
@just _copy-assets {{ target }}
@cd cmd/{{ target }} && go build -tags exec_local,save_s3 -o ../../bin/{{ target }}
@echo "built {{ target }}"
# build all targets
build-all:
#!/bin/bash
for d in cmd/*; do
just build $(basename $d)
done
run target:
@just build {{ target }}
@./bin/{{ target }}