Skip to content

Instantly share code, notes, and snippets.

@tachoknight
Created June 12, 2018 19:40
Show Gist options
  • Save tachoknight/87ae375d4899637025002b508aaf2ba3 to your computer and use it in GitHub Desktop.
Save tachoknight/87ae375d4899637025002b508aaf2ba3 to your computer and use it in GitHub Desktop.
Bash script to build Apple's Swift Programming Language on Linux
#!/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