-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
51 lines (40 loc) · 1.24 KB
/
Justfile
File metadata and controls
51 lines (40 loc) · 1.24 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
all-build: build-activities build-webhooks
# private
build-activities:
set -xe && cargo build --target=wasm32-wasip2 --profile=release_activity \
$(cargo metadata --no-deps --format-version=1 \
| jq -r '.packages[].name | select(startswith("activity-")) | "-p \(. )"' \
| xargs)
# private
build-webhooks:
set -xe && cargo build --target=wasm32-wasip2 --profile=release_webhook \
$(cargo metadata --no-deps --format-version=1 \
| jq -r '.packages[].name | select(startswith("webhook-")) | "-p \(. )"' \
| xargs)
all-verify-local:
just run-all verify-local
all-verify-oci:
just run-all-with-oci-config verify-oci
all-verify: all-verify-local all-verify-oci
all-test *args:
cargo nextest run --workspace {{args}}
all-test-e2e *args:
./scripts/test-e2e.sh {{args}}
all-push target:
just run-all push {{target}}
all-push-dryrun:
just all-push dryrun
# private
run-all *args:
set -e && find . -name obelisk-local.toml | while read -r jf; do \
dir=$(dirname "$jf"); \
echo "==> $dir ({{args}})"; \
(cd "$dir" && just {{args}}); \
done
# private
run-all-with-oci-config *args:
set -e && find . -name obelisk-oci.toml | while read -r jf; do \
dir=$(dirname "$jf"); \
echo "==> $dir ({{args}})"; \
(cd "$dir" && just {{args}}); \
done