summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-12-27 15:22:45 +0000
committerAndreas Kling <kling@serenityos.org>2020-12-28 19:35:32 +0100
commit3bdaba0b289642c8d2c50798c8ddbb842307e308 (patch)
tree97dc356ed8605a5eb18794d17734ad3b345429c9 /Toolchain
parentb4bb2b141c4c76ffe1c49d35897bf56db7c63f59 (diff)
downloadserenity-3bdaba0b289642c8d2c50798c8ddbb842307e308.zip
Meta: Add macOS workflow to CI
A good number of contributors use macOS. However, we have a bit of a tendency of breaking the macOS build without realising it. Luckily, GitHub Actions does actually supply macOS environments, so let's use it.
Diffstat (limited to 'Toolchain')
-rwxr-xr-xToolchain/BuildIt.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh
index 568aac2b28..bcbd1cc976 100755
--- a/Toolchain/BuildIt.sh
+++ b/Toolchain/BuildIt.sh
@@ -267,12 +267,16 @@ pushd "$DIR"
rm -f "${CACHED_TOOLCHAIN_ARCHIVE}" # Just in case
- # We *most definitely* don't need debug symbols in the linker/compiler.
- # This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 190 MiB.
- echo "Stripping executables ..."
- echo "Before: $(du -sh Local)"
- find Local/ -type f -executable ! -name '*.la' ! -name '*.sh' ! -name 'mk*' -exec strip {} +
- echo "After: $(du -sh Local)"
+ # Stripping doesn't seem to work on macOS.
+ # However, this doesn't seem to be necessary on macOS, the uncompressed size is already about 210 MiB.
+ if [ "$(uname)" != "Darwin" ]; then
+ # We *most definitely* don't need debug symbols in the linker/compiler.
+ # This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 190 MiB.
+ echo "Stripping executables ..."
+ echo "Before: $(du -sh Local)"
+ find Local/ -type f -executable ! -name '*.la' ! -name '*.sh' ! -name 'mk*' -exec strip {} +
+ echo "After: $(du -sh Local)"
+ fi
tar czf "${CACHED_TOOLCHAIN_ARCHIVE}" Local/
echo "Cache (after):"