Skip to content

Fixed macOS build

Fixed macOS build #99

Workflow file for this run

# --------------------------------------------------------------------------------
# This workflow was automatically generated by Action Status 2.0.5 (478).
# (see https://actionstatus.elegantchaos.com for more details)
# --------------------------------------------------------------------------------
name: Tests
on: [push, pull_request]
jobs:
macOS-swift-51:
name: macOS (Swift 5.1)
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_11.3.1.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- 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
macOS-swift-56:
name: macOS (Swift 5.6)
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_13.2.1.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- 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-51:
name: Linux (Swift 5.1)
runs-on: ubuntu-18.04
container: swift:5.1
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- 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
linux-swift-56:
name: Linux (Swift 5.6)
runs-on: ubuntu-18.04
container: swiftlang/swift:nightly-5.6-bionic
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- 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
xcode-swift-51:
name: iOS/tvOS (Swift 5.1, Xcode 11.3.1)
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_11.3.1.app
xcodebuild -version
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: 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: 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: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs
xcode-swift-56:
name: iOS/tvOS (Swift 5.6, Xcode 13.2.1)
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_13.2.1.app
xcodebuild -version
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: 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: 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: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs