mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Make execution of tests in Nix builds optional (#873)
This commit is contained in:
parent
2e231ec2ff
commit
9f1b370f2c
9 changed files with 69 additions and 19 deletions
|
@ -3,9 +3,25 @@
|
|||
nix-build --version
|
||||
test $? -eq 0 || { echo "Nix is not installed!"; exit 1; }
|
||||
|
||||
with_tests=false
|
||||
|
||||
|
||||
while getopts 't' flag; do
|
||||
case "${flag}" in
|
||||
t) with_tests=true ;;
|
||||
*) break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
cp assembly/nix/macos-* .
|
||||
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
|
||||
nix-build macos-static.nix
|
||||
|
||||
if [ "$with_tests" = true ]; then
|
||||
nix-build macos-static.nix --arg testing true
|
||||
else
|
||||
nix-build macos-static.nix
|
||||
fi
|
||||
mkdir artifacts
|
||||
cp ./result-bin/bin/* artifacts/
|
||||
chmod +x artifacts/*
|
||||
|
@ -14,4 +30,4 @@ nix-build macos-tonlib.nix
|
|||
cp ./result/lib/libtonlibjson.dylib artifacts/
|
||||
cp ./result/lib/libemulator.dylib artifacts/
|
||||
cp -r crypto/fift/lib artifacts/
|
||||
cp -r crypto/smartcont artifacts/
|
||||
cp -r crypto/smartcont artifacts/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue