-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
justfile
60 lines (46 loc) · 1.08 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
default: deps compile build-local
choose:
just --choose
deps:
mix deps.get
compile:
mix compile
start:
bin/start --port 9000
test:
mix test
format:
mix format
lint:
#!/usr/bin/env bash
set -euxo pipefail
mix format --check-formatted
mix credo
mix dialyzer
[unix]
build-local:
#!/usr/bin/env bash
case "{{os()}}-{{arch()}}" in
"linux-arm" | "linux-aarch64")
target=linux_arm64;;
"linux-x86" | "linux-x86_64")
target=linux_amd64;;
"macos-arm" | "macos-aarch64")
target=darwin_arm64;;
"macos-x86" | "macos-x86_64")
target=darwin_amd64;;
*)
echo "unsupported OS/Arch combination"
exit 1;;
esac
NEXTLS_RELEASE_MODE=burrito BURRITO_TARGET="$target" MIX_ENV=prod mix release
[windows]
build-local:
# idk actually how to set env vars like this on windows, might crash
NEXTLS_RELEASE_MODE=burrito BURRITO_TARGET="windows_amd64" MIX_ENV=prod mix release
build-all:
NEXTLS_RELEASE_MODE=burrito MIX_ENV=prod mix release
build-plain:
MIX_ENV=prod mix release plain
bump-spitfire:
mix deps.update spitfire