From 7ae7a54b38c75484e632ad1baa4b91bf8727e26f Mon Sep 17 00:00:00 2001 From: Peter Oschwald Date: Tue, 8 Aug 2023 14:02:42 -0500 Subject: [PATCH 1/2] Optimize build artifact size by removing object files. --- .github/workflows/build-contract.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-contract.sh b/.github/workflows/build-contract.sh index 6b777230..2d336a31 100755 --- a/.github/workflows/build-contract.sh +++ b/.github/workflows/build-contract.sh @@ -20,6 +20,6 @@ ee make -j "$(nproc)" # pack ee popd -ee 'tar -czf contract.tar.gz build/*' +ee 'tar -czf contract.tar.gz --exclude="*.obj" build/*' echo "Done! - ${0##*/}" From 87dff735c56b4fb2bf54453e1dcb4459783d4b88 Mon Sep 17 00:00:00 2001 From: Peter Oschwald Date: Tue, 8 Aug 2023 14:06:51 -0500 Subject: [PATCH 2/2] Optimize tests build artifact size by removing object files. --- .github/workflows/build-contract-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-contract-test.sh b/.github/workflows/build-contract-test.sh index 0f868252..676e6274 100755 --- a/.github/workflows/build-contract-test.sh +++ b/.github/workflows/build-contract-test.sh @@ -23,7 +23,7 @@ ee make -j "$(nproc)" unit_test # pack ee popd -ee 'tar -czf ../contract-test.tar.gz build/*' +ee 'tar -czf ../contract-test.tar.gz --exclude="*.o" build/*' ee popd echo "Done! - ${0##*/}"