Skip to content

Commit

Permalink
feat: build and cache debug and src on this branch (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose authored Dec 6, 2024
1 parent 57149e1 commit 34cbe36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docker/nix/build_nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ nix --version
if [ -d "/workspace" ]; then
cd /workspace
fi
SYSTEM=$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"')
nix build .#psql_15/bin -o psql_15
nix flake check -L
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15
if [ "$SYSTEM" = "aarch64-linux" ]; then
nix build .#postgresql_15_debug -o ./postgresql_15_debug
nix build .#postgresql_15_src -o ./postgresql_15_src
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_debug-debug
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_src
fi
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
pg_regress = pg_regress;
pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP;
postgresql_15 = pkgs.postgresql_15;

postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null;
postgresql_15_src = pkgs.stdenv.mkDerivation {
pname = "postgresql-15-src";
version = pkgs.postgresql_15.version;
Expand Down

0 comments on commit 34cbe36

Please sign in to comment.