Skip to content

Commit 2a3ed21

Browse files
committed
chore: limit nix build to 15 on x86_64-darwin
1 parent 22e8a53 commit 2a3ed21

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docker/nix/build_nix.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ nix --version
55
if [ -d "/workspace" ]; then
66
cd /workspace
77
fi
8-
nix build .#checks.$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"').psql_15 -L --no-link
9-
nix build .#checks.$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"').psql_16 -L --no-link
10-
nix build .#psql_15/bin -o psql_15
11-
nix build .#psql_16/bin -o psql_16
12-
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
13-
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_16
8+
if [ $(nix-instantiate --eval -E builtins.currentSystem | tr -d '"') == "x86_64-darwin" ]; then
9+
nix build .#checks.$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"').psql_15 -L --no-link
10+
nix build .#psql_15/bin -o psql_15
11+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
12+
else
13+
nix build .#checks.$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"').psql_15 -L --no-link
14+
nix build .#checks.$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"').psql_16 -L --no-link
15+
nix build .#psql_15/bin -o psql_15
16+
nix build .#psql_16/bin -o psql_16
17+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
18+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_16
19+
fi

0 commit comments

Comments
 (0)