Reduce artifact size
authorPaul Bauer <paul.bauer.q@gmail.com>
Mon, 17 Aug 2020 08:39:17 +0000 (08:39 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 17 Aug 2020 08:39:17 +0000 (08:39 +0000)
Remove object files from build archives to reduce size.

Fixes #3630

Change-Id: Id841b91b8ab31d79579685c4aebaa67dec464962

admin/gitlab-ci/gromacs.gitlab-ci.yml

index 7b5f85d7f9f262d8cd6576a32c3a99511931873a..28a7392c8ad7ea6e0a3fb7df6fe0f43b35b101d3 100644 (file)
@@ -376,6 +376,7 @@ gromacs:clang-8-cuda-10.1:release:configure:
     - grep "cannot be built" buildLogFile.log testBuildLogFile.log | tee -a buildErrors.log || true
     - cmake --build . --target install 2>&1 | tee installBuildLogFile.log
     - if [ -s buildErrors.log ] ; then echo "Found compiler warning during build"; cat buildErrors.log; exit 1; fi
+    - for file in `find . -mindepth 1 -name "*.o" ! -type l` ; do echo $file ; rm $file ; done 2>&1 > remove-build-objects.log
     - cd ..
   artifacts:
     when: always