forked from cloudfoundry-community/swift-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add URLs for Swift 5.6.3 and 5.7 (new default) (#72)
- Loading branch information
Showing
4 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
case "$PLATFORM" in | ||
'osx' ) | ||
URL="https://swift.org/builds/swift-5.6.3-release/xcode/swift-5.6.3-RELEASE/swift-5.6.3-RELEASE-osx.pkg" | ||
;; | ||
|
||
'ubuntu14.04' ) | ||
echo | ||
echo " ! Swift 5.6.3 does not support Ubuntu 14.04." | ||
echo " ! Please upgrade your stack using the 'heroku stack:set' command or via the dashboard." | ||
echo " ! If that is not an option, pin an older version of Swift." | ||
echo | ||
exit 1 | ||
;; | ||
|
||
'ubuntu16.04' ) | ||
URL="https://swift.org/builds/swift-5.6.3-release/ubuntu1604/swift-5.6.3-RELEASE/swift-5.6.3-RELEASE-ubuntu16.04.tar.gz" | ||
;; | ||
|
||
'ubuntu18.04' ) | ||
URL="https://swift.org/builds/swift-5.6.3-release/ubuntu1804/swift-5.6.3-RELEASE/swift-5.6.3-RELEASE-ubuntu18.04.tar.gz" | ||
;; | ||
|
||
'ubuntu20.04' ) | ||
URL="https://swift.org/builds/swift-5.6.3-release/ubuntu2004/swift-5.6.3-RELEASE/swift-5.6.3-RELEASE-ubuntu20.04.tar.gz" | ||
;; | ||
|
||
'ubuntu22.04' ) | ||
echo | ||
echo " ! Swift 5.6.3 does not support Ubuntu 22.04, nor any later versions of the Heroku stack." | ||
echo " !" | ||
echo " ! As of 2022-06-21, Swift does not yet have a release that supports Ubuntu 22.04." | ||
echo " ! Downgrade your stack to heroku-20 using the 'heroku stack:set' command or the dashboard." | ||
echo | ||
exit 1 | ||
;; | ||
|
||
* ) | ||
;; | ||
esac |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
case "$PLATFORM" in | ||
'osx' ) | ||
URL="https://swift.org/builds/swift-5.7-release/xcode/swift-5.7-RELEASE/swift-5.7-RELEASE-osx.pkg" | ||
;; | ||
|
||
'ubuntu14.04' ) | ||
echo | ||
echo " ! Swift 5.7 does not support Ubuntu 14.04." | ||
echo " ! Please upgrade your stack using the 'heroku stack:set' command or via the dashboard." | ||
echo " ! If that is not an option, pin an older version of Swift." | ||
echo | ||
exit 1 | ||
;; | ||
|
||
'ubuntu16.04' ) | ||
URL="https://swift.org/builds/swift-5.7-release/ubuntu1604/swift-5.7-RELEASE/swift-5.7-RELEASE-ubuntu16.04.tar.gz" | ||
;; | ||
|
||
'ubuntu18.04' ) | ||
URL="https://swift.org/builds/swift-5.7-release/ubuntu1804/swift-5.7-RELEASE/swift-5.7-RELEASE-ubuntu18.04.tar.gz" | ||
;; | ||
|
||
'ubuntu20.04' ) | ||
URL="https://swift.org/builds/swift-5.7-release/ubuntu2004/swift-5.7-RELEASE/swift-5.7-RELEASE-ubuntu20.04.tar.gz" | ||
;; | ||
|
||
'ubuntu22.04' ) | ||
URL="https://swift.org/builds/swift-5.7-release/ubuntu2204/swift-5.7-RELEASE/swift-5.7-RELEASE-ubuntu22.04.tar.gz" | ||
;; | ||
|
||
* ) | ||
;; | ||
esac |