-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
115 lines (90 loc) · 2.69 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
set positional-arguments
@default:
just --list
install: install-node install-web-demo
cargo binstall cargo-edit
test-core:
cargo test -qp mintyml --no-default-features
cargo test -qp mintyml --all-features
test-cli:
cargo test -qp mintyml-cli
@test-node: install-node (build-node-wasm "node")
just do minty-wasm test-exec
@test: test-core test-cli test-node
@build-node-wasm VARIANT:
just do minty-wasm build-wasm-{{ VARIANT }}
install-node:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Build-NodeManifest; \
just do minty-wasm install; \
'
@build-node-tsc: install-node
just do minty-wasm build-tsc
@build-node: install-node (build-node-wasm "web") (build-node-wasm "node") build-node-tsc
@publish-node: build-node test-node
just do minty-wasm publish-exec
@install-web-demo:
just do web-demo install
@serve-web-demo: install-web-demo && (build-node-wasm "web") build-node-tsc
just do web-demo serve &
@build-web-demo: (build-node-wasm "web") build-node-tsc install-web-demo
just do web-demo webpack
build-cli:
cargo build -q --release --manifest-path minty-cli/Cargo.toml
publish-packages:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Publish-Packages -Publish; \
'
start-release-workflow:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Start-ReleaseWorkflow; \
'
new-release TAG:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
New-Release -Tag "{{TAG}}"; \
'
update-release TAG TARGET_FILE:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Update-Release -Publish -Tag "{{TAG}}" -TargetFile "{{TARGET_FILE}}"; \
'
publish-release TAG:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Publish-Release -Tag "{{TAG}}"; \
'
build-release TARGET_FILE:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./build-utils.psm1; \
Build-Release -TargetFile "{{TARGET_FILE}}"; \
'
update-readme:
pwsh -c ' \
$ErrorActionPreference = "Stop"; \
Import-Module ./doc-utils.psm1; \
Build-ReadmeDotMd; \
Build-ExampleIntro; \
Build-CliReadme; \
'
act *ARGS:
#!/usr/bin/env sh
repo=$(git remote get-url origin | sed -E 's:^.*\W(\w+/\w+)\.git$:\1:')
gh act \
--env GH_TOKEN=$(gh auth token) \
--env CROSS_CONTAINER_IN_CONTAINER=true \
--local-repository $repo=./ \
--privileged \
"$@"
@do DIR CMD *ARGS:
shift 2; just {{DIR}}/{{CMD}} "$@"