Created
June 12, 2018 19:40
-
-
Save tachoknight/87ae375d4899637025002b508aaf2ba3 to your computer and use it in GitHub Desktop.
Bash script to build Apple's Swift Programming Language on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE_DIR=/home/tachoknight/apple-swift | |
BUILDS_DIR=$BASE_DIR/builds | |
rm -rf $BASE_DIR | |
mkdir -p $BUILDS_DIR | |
cd $BASE_DIR | |
git clone https://github.com/apple/swift.git swift | |
./swift/utils/update-checkout --clone --scheme master | |
# | |
# My stuff | |
# | |
# This will do the actual work | |
time ./swift/utils/build-script --preset buildbot_linux,no_test install_destdir=$BUILDS_DIR installable_package=$BUILDS_DIR/swift-master.tar.gz > $BASE_DIR/swifty-building.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment