Skip to content

Commit

Permalink
Dropped 5.4 and nightly tests for now due to an iOS compiler/runtime …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
samdeane committed Apr 20, 2021
1 parent 28f23f3 commit 8dfc981
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 361 deletions.
358 changes: 0 additions & 358 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,90 +90,6 @@ jobs:
path: logs


macOS-swift-54:
name: macOS (Swift 5.4 Nightly)
runs-on: macOS-latest
env:
TOOLCHAINS: swift
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="swift-5.4-branch"
wget --quiet https://swift.org/builds/$branch/xcode/latest-build.yml
grep "download:" < latest-build.yml > filtered.yml
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh
source snapshot.sh
echo "Installing Toolchain: $downloadYML"
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg
sudo installer -pkg $downloadYML-osx.pkg -target /
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest
sudo xcode-select -s /Applications/Xcode_12_beta.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: Swift Version
run: swift --version
- name: Build (Release)
run: export PATH="swift-latest:$PATH"; swift build -c release
- name: Test (Release)
run: export PATH="swift-latest:$PATH"; swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


macOS-swift-nightly:
name: macOS (Swift Development Nightly)
runs-on: macOS-latest
env:
TOOLCHAINS: swift
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="development"
wget --quiet https://swift.org/builds/$branch/xcode/latest-build.yml
grep "download:" < latest-build.yml > filtered.yml
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh
source snapshot.sh
echo "Installing Toolchain: $downloadYML"
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg
sudo installer -pkg $downloadYML-osx.pkg -target /
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest
sudo xcode-select -s /Applications/Xcode_12_beta.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: Swift Version
run: swift --version
- name: Build (Release)
run: export PATH="swift-latest:$PATH"; swift build -c release
- name: Test (Release)
run: export PATH="swift-latest:$PATH"; swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


linux-swift-51:
name: Linux (Swift 5.1)
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -243,52 +159,6 @@ jobs:
path: logs


linux-swift-54:
name: Linux (Swift 5.4 Nightly)
runs-on: ubuntu-18.04
container: swiftlang/swift:nightly-5.4-bionic
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Build (Release)
run: swift build -c release
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


linux-swift-nightly:
name: Linux (Swift Development Nightly)
runs-on: ubuntu-18.04
container: swiftlang/swift:nightly
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Build (Release)
run: swift build -c release
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


xcode-swift-51:
name: Xcode (Swift 5.1)
runs-on: macOS-latest
Expand Down Expand Up @@ -585,231 +455,3 @@ jobs:
name: logs
path: logs


xcode-swift-54:
name: Xcode (Swift 5.4 Nightly)
runs-on: macOS-latest
env:
TOOLCHAINS: swift
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="swift-5.4-branch"
wget --quiet https://swift.org/builds/$branch/xcode/latest-build.yml
grep "download:" < latest-build.yml > filtered.yml
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh
source snapshot.sh
echo "Installing Toolchain: $downloadYML"
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg
sudo installer -pkg $downloadYML-osx.pkg -target /
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest
sudo xcode-select -s /Applications/Xcode_12_beta.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: XC Pretty
run: sudo gem install xcpretty-travis-formatter
- name: Detect Workspace & Scheme (iOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-iOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (iOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-iOS-build-release.log | xcpretty
- name: Test (iOS Release)
run: |
source "setup.sh"
echo "Testing workspace $WORKSPACE scheme $SCHEME."
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "name=iPhone 11" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ENABLE_TESTABILITY=YES | tee logs/xcodebuild-iOS-test-release.log | xcpretty
- name: Detect Workspace & Scheme (tvOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-tvOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (tvOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-tvOS-build-release.log | xcpretty
- name: Test (tvOS Release)
run: |
source "setup.sh"
echo "Testing workspace $WORKSPACE scheme $SCHEME."
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "name=Apple TV" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ENABLE_TESTABILITY=YES | tee logs/xcodebuild-tvOS-test-release.log | xcpretty
- name: Detect Workspace & Scheme (watchOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-watchOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (watchOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-watchOS-build-release.log | xcpretty
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


xcode-swift-nightly:
name: Xcode (Swift Development Nightly)
runs-on: macOS-latest
env:
TOOLCHAINS: swift
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="development"
wget --quiet https://swift.org/builds/$branch/xcode/latest-build.yml
grep "download:" < latest-build.yml > filtered.yml
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh
source snapshot.sh
echo "Installing Toolchain: $downloadYML"
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg
sudo installer -pkg $downloadYML-osx.pkg -target /
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest
sudo xcode-select -s /Applications/Xcode_12_beta.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: XC Pretty
run: sudo gem install xcpretty-travis-formatter
- name: Detect Workspace & Scheme (iOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-iOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (iOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-iOS-build-release.log | xcpretty
- name: Test (iOS Release)
run: |
source "setup.sh"
echo "Testing workspace $WORKSPACE scheme $SCHEME."
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "name=iPhone 11" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ENABLE_TESTABILITY=YES | tee logs/xcodebuild-iOS-test-release.log | xcpretty
- name: Detect Workspace & Scheme (tvOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-tvOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (tvOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-tvOS-build-release.log | xcpretty
- name: Test (tvOS Release)
run: |
source "setup.sh"
echo "Testing workspace $WORKSPACE scheme $SCHEME."
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "name=Apple TV" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ENABLE_TESTABILITY=YES | tee logs/xcodebuild-tvOS-test-release.log | xcpretty
- name: Detect Workspace & Scheme (watchOS)
run: |
WORKSPACE="XCTestExtensions.xcworkspace"
if [[ ! -e "$WORKSPACE" ]]
then
WORKSPACE="."
GOTPACKAGE=$(xcodebuild -workspace . -list | (grep XCTestExtensions-Package || true))
if [[ $GOTPACKAGE != "" ]]
then
SCHEME="XCTestExtensions-Package"
else
SCHEME="XCTestExtensions"
fi
else
SCHEME="XCTestExtensions-watchOS"
fi
echo "set -o pipefail; export PATH='swift-latest:$PATH'; WORKSPACE='$WORKSPACE'; SCHEME='$SCHEME'" > setup.sh
- name: Build (watchOS Release)
run: |
source "setup.sh"
echo "Building workspace $WORKSPACE scheme $SCHEME."
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | tee logs/xcodebuild-watchOS-build-release.log | xcpretty
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
[comment]: <> (Header Generated by ActionStatus 2.0 - 395)

[![Test results][tests shield]][actions] [![Latest release][release shield]][releases] [![swift 5.1 shield] ![swift 5.2 shield] ![swift 5.3 shield] ![swift 5.4 shield] ![swift dev shield]][swift] ![Platforms: macOS, iOS, tvOS, watchOS, Linux][platforms shield]
[![Test results][tests shield]][actions] [![Latest release][release shield]][releases] [![swift 5.1 shield] ![swift 5.2 shield] ![swift 5.3 shield]][swift] ![Platforms: macOS, iOS, tvOS, watchOS, Linux][platforms shield]

[release shield]: https://img.shields.io/github/v/release/elegantchaos/XCTestExtensions
[platforms shield]: https://img.shields.io/badge/platforms-macOS_iOS_tvOS_watchOS_Linux-lightgrey.svg?style=flat "macOS, iOS, tvOS, watchOS, Linux"
[tests shield]: https://github.com/elegantchaos/XCTestExtensions/workflows/Tests/badge.svg
[swift 5.1 shield]: https://img.shields.io/badge/swift-5.1-F05138.svg "Swift 5.1"
[swift 5.2 shield]: https://img.shields.io/badge/swift-5.2-F05138.svg "Swift 5.2"
[swift 5.3 shield]: https://img.shields.io/badge/swift-5.3-F05138.svg "Swift 5.3"
[swift 5.4 shield]: https://img.shields.io/badge/swift-5.4-F05138.svg "Swift 5.4"
[swift dev shield]: https://img.shields.io/badge/swift-dev-F05138.svg "Swift dev"

[swift]: https://swift.org
[releases]: https://github.com/elegantchaos/XCTestExtensions/releases
Expand Down

0 comments on commit 8dfc981

Please sign in to comment.