Added compiler test scripts

This commit is contained in:
SChernykh
2025-07-06 21:59:52 +02:00
parent 5d14b27616
commit 2f51c38549
8 changed files with 198 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# Example usage: ./build.sh v4.8.1 15
cd "$(dirname "$0")"
docker build --build-arg P2POOL_VERSION=$1 --build-arg GCC_VERSION=$2 -t p2pool_compiler_test_gcc_$2 .
docker create --name p2pool_compiler_test_gcc_$2_container p2pool_compiler_test_gcc_$2:latest
docker cp p2pool_compiler_test_gcc_$2_container:/p2pool/logs.tar.gz logs_$2.tar.gz
docker rm p2pool_compiler_test_gcc_$2_container
docker image rm -f p2pool_compiler_test_gcc_$2