mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
Add smartcont/auto folder to portable artifacts (#884)
* fix test-validation-session-state test
* make running tests optional in nix builds
* make running tests optional in nix builds
* Revert "fix test-validation-session-state test"
This reverts commit a5bb869184
.
* add smartcont/auto folder to portable artifacts
* Add check if artifacts were created. If any of tests fail, this is not the case;
This commit is contained in:
parent
af71dae31b
commit
21dfad866b
3 changed files with 14 additions and 9 deletions
|
@ -24,12 +24,14 @@ if [ "$with_tests" = true ]; then
|
||||||
else
|
else
|
||||||
nix-build linux-arm64-static.nix
|
nix-build linux-arm64-static.nix
|
||||||
fi
|
fi
|
||||||
mkdir artifacts
|
|
||||||
|
mkdir -p artifacts/lib
|
||||||
cp ./result/bin/* artifacts/
|
cp ./result/bin/* artifacts/
|
||||||
|
test $? -eq 0 || { echo "No artifacts have been built..."; exit 1; }
|
||||||
chmod +x artifacts/*
|
chmod +x artifacts/*
|
||||||
rm -rf result
|
rm -rf result
|
||||||
nix-build linux-arm64-tonlib.nix
|
nix-build linux-arm64-tonlib.nix
|
||||||
cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
|
cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
|
||||||
cp ./result/lib/libemulator.so artifacts/
|
cp ./result/lib/libemulator.so artifacts/
|
||||||
cp -r crypto/fift/lib artifacts/
|
cp ./result/lib/fift/* artifacts/lib/
|
||||||
cp -r crypto/smartcont artifacts/
|
cp -r ./result/share/ton/smartcont artifacts/
|
||||||
|
|
|
@ -25,12 +25,13 @@ else
|
||||||
nix-build linux-x86-64-static.nix
|
nix-build linux-x86-64-static.nix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir artifacts
|
mkdir -p artifacts/lib
|
||||||
cp ./result/bin/* artifacts/
|
cp ./result/bin/* artifacts/
|
||||||
|
test $? -eq 0 || { echo "No artifacts have been built..."; exit 1; }
|
||||||
chmod +x artifacts/*
|
chmod +x artifacts/*
|
||||||
rm -rf result
|
rm -rf result
|
||||||
nix-build linux-x86-64-tonlib.nix
|
nix-build linux-x86-64-tonlib.nix
|
||||||
cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
|
cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
|
||||||
cp ./result/lib/libemulator.so artifacts/
|
cp ./result/lib/libemulator.so artifacts/
|
||||||
cp -r crypto/fift/lib artifacts/
|
cp ./result/lib/fift/* artifacts/lib/
|
||||||
cp -r crypto/smartcont artifacts/
|
cp -r ./result/share/ton/smartcont artifacts/
|
||||||
|
|
|
@ -22,12 +22,14 @@ if [ "$with_tests" = true ]; then
|
||||||
else
|
else
|
||||||
nix-build macos-static.nix
|
nix-build macos-static.nix
|
||||||
fi
|
fi
|
||||||
mkdir artifacts
|
|
||||||
|
mkdir -p artifacts/lib
|
||||||
cp ./result-bin/bin/* artifacts/
|
cp ./result-bin/bin/* artifacts/
|
||||||
|
test $? -eq 0 || { echo "No artifacts have been built..."; exit 1; }
|
||||||
chmod +x artifacts/*
|
chmod +x artifacts/*
|
||||||
rm -rf result-bin
|
rm -rf result-bin
|
||||||
nix-build macos-tonlib.nix
|
nix-build macos-tonlib.nix
|
||||||
cp ./result/lib/libtonlibjson.dylib artifacts/
|
cp ./result/lib/libtonlibjson.dylib artifacts/
|
||||||
cp ./result/lib/libemulator.dylib artifacts/
|
cp ./result/lib/libemulator.dylib artifacts/
|
||||||
cp -r crypto/fift/lib artifacts/
|
cp ./result/lib/fift/* artifacts/lib/
|
||||||
cp -r crypto/smartcont artifacts/
|
cp -r ./result/share/ton/smartcont artifacts/
|
||||||
|
|
Loading…
Reference in a new issue