Skip to content

Commit 3a98920

Browse files
committed
refactor(Justfile): Migrate Justfile from nix-blockchain-development
1 parent 78027a6 commit 3a98920

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Justfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
set dotenv-load := true
2+
3+
root-dir := justfile_directory()
4+
result-dir := root-dir / ".result"
5+
gc-roots-dir := result-dir / "gc-roots"
6+
nix := `if tty -s; then echo nom; else echo nix; fi`
7+
cachix-cache-name := `echo ${CACHIX_CACHE:-}`
8+
9+
os := if os() == "macos" { "darwin" } else { "linux" }
10+
arch := arch()
11+
system:= arch + "-" + os
12+
13+
default:
14+
@just --list
15+
16+
get-system:
17+
@echo {{ system }}
18+
19+
eval-packages eval-system=system:
20+
#!/usr/bin/env bash
21+
set -euo pipefail
22+
source "{{root-dir}}/scripts/nix-eval-jobs.sh"
23+
nix_eval_jobs legacyPackages.{{eval-system}}.metacraft-labs
24+
25+
generate-matrix:
26+
"{{root-dir}}/scripts/ci-matrix.sh"

0 commit comments

Comments
 (0)