Skip to content

Use unspecified QoS in QueueScheduler when QoS is unspecified #224

Use unspecified QoS in QueueScheduler when QoS is unspecified

Use unspecified QoS in QueueScheduler when QoS is unspecified #224

Workflow file for this run

on: pull_request
name: Test
jobs:
test:
name: Test
runs-on: macos-12
strategy:
fail-fast: false
matrix:
destination: [macOS, iOS, tvOS, watchOS]
env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Recover cached dependencies
uses: actions/cache@v1
id: dependency-cache
with:
path: Carthage/Checkouts
key: carthage-${{ hashFiles('Cartfile.resolved') }}
- name: Pull dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
carthage checkout
- name: Test via xcodebuild
run: |
ACTION=test
DESTINATION=unknown
SCHEME=unknown
case "${{ matrix.destination }}" in
"iOS")
DESTINATION="platform=iOS Simulator,name=iPhone 11 Pro"
SCHEME=ReactiveSwift-iOS
;;
"tvOS")
DESTINATION="platform=tvOS Simulator,name=Apple TV"
SCHEME=ReactiveSwift-tvOS
;;
"watchOS")
ACTION=build
DESTINATION="platform=watchOS Simulator,name=Apple Watch Series 5 (44mm)"
SCHEME=ReactiveSwift-watchOS
;;
"macCatalyst")
DESTINATION="platform=macOS,variant=Mac Catalyst"
SCHEME=ReactiveSwift-iOS
;;
"macOS")
DESTINATION="platform=macOS,arch=x86_64"
SCHEME=ReactiveSwift-macOS
;;
*)
echo "Unknown destination."
exit 1
;;
esac
xcodebuild clean ${ACTION} \
-destination "${DESTINATION}" \
-scheme ${SCHEME} \
-workspace ReactiveSwift.xcworkspace \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
ONLY_ACTIVE_ARCH=YES
swiftpm-linux:
strategy:
matrix:
swift: ["5.7"]
name: SwiftPM Linux
runs-on: ubuntu-22.04
steps:
- name: Setup Swift version
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Pull dependencies
run: |
swift package resolve
- name: Test via SwiftPM
run: |
swift --version
swift build
swift test