Skip to content

Commit 34cbe36

Browse files
authored
feat: build and cache debug and src on this branch (#1360)
1 parent 57149e1 commit 34cbe36

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docker/nix/build_nix.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ nix --version
55
if [ -d "/workspace" ]; then
66
cd /workspace
77
fi
8+
SYSTEM=$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"')
89
nix build .#psql_15/bin -o psql_15
910
nix flake check -L
1011
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
12+
if [ "$SYSTEM" = "aarch64-linux" ]; then
13+
nix build .#postgresql_15_debug -o ./postgresql_15_debug
14+
nix build .#postgresql_15_src -o ./postgresql_15_src
15+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_debug-debug
16+
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_src
17+
fi

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
pg_regress = pg_regress;
297297
pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP;
298298
postgresql_15 = pkgs.postgresql_15;
299-
299+
postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null;
300300
postgresql_15_src = pkgs.stdenv.mkDerivation {
301301
pname = "postgresql-15-src";
302302
version = pkgs.postgresql_15.version;

0 commit comments

Comments
 (0)