Cabal: Aeson-1.5.6.0 build failed

Hello!
I’m trying to configure pool on testnet and I got to the problem below. Did anyone had similar problem when you used cabal build cardano-cli cardano-node and can advise me how to by pass it?
Thank you in advance!

[11 of 24] Compiling Data.Aeson.Types.FromJSON ( src/Data/Aeson/Types/FromJSON.hs, dist/build/Data/Aeson/Types/FromJSON.o, dist/build/Data/Aeson/Types/FromJSON.dyn_o )
cabal: Failed to build aeson-1.5.6.0 (which is required by
test:trace-dispatcher-test from trace-dispatcher-1.29.0,
exe:trace-dispatcher-examples from trace-dispatcher-1.29.0 and others). The
build process was killed (i.e. SIGKILL). The typical reason for this is that
there is not enough memory available (e.g. the OS killed a process using lots
of memory).



Use 1.31.0 version

Thank you for your advise. But still the same (below). Also tried with -j1, to limit the number of CPUs. Any other suggestion?

cabal: Failed to build aeson-1.5.6.0 (which is required by
test:cardano-cli-test from cardano-cli-1.31.0 and test:cardano-cli-golden from
cardano-cli-1.31.0). The build process was killed (i.e. SIGKILL). The typical
reason for this is that there is not enough memory available (e.g. the OS
killed a process using lots of memory).

type free -m
u can try to configure the SWAP file in case u don’t have it

Resizing the droplet.