-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from Comcast/candidate/1.6.0
Candidate/1.6.0
- Loading branch information
Showing
19 changed files
with
1,876 additions
and
207 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and test | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop", "develop_1.x", "main", "main_1.x" ] | ||
|
||
jobs: | ||
define-ios-device: | ||
name: Get iOS simulator device to run iOS tests on | ||
runs-on: macos-latest | ||
outputs: | ||
device: ${{ steps.ios.outputs.device }} | ||
steps: | ||
- id: ios | ||
run: echo "device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`" >> "$GITHUB_OUTPUT" | ||
|
||
build: | ||
name: Build and Test mamba and mambaTVOS | ||
runs-on: macos-latest | ||
needs: define-ios-device | ||
strategy: | ||
matrix: | ||
target: | ||
- scheme: mamba | ||
platform: iOS Simulator | ||
device: ${{ needs.define-ios-device.outputs.device }} | ||
- scheme: mambaTVOS | ||
platform: tvOS Simulator | ||
device: Apple TV | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
env: | ||
scheme: ${{ matrix.target.scheme }} | ||
platform: ${{ matrix.target.platform }} | ||
device: ${{ matrix.target.device }} | ||
run: | | ||
echo "scheme = $scheme" | ||
echo "platform = $platform" | ||
echo "device = $device" | ||
xcodebuild build-for-testing -scheme "$scheme" -"workspace" "mamba.xcworkspace" -destination "platform=$platform,name=$device" | ||
- name: Test | ||
env: | ||
scheme: ${{ matrix.target.scheme }} | ||
platform: ${{ matrix.target.platform }} | ||
device: ${{ matrix.target.device }} | ||
run: | | ||
echo "scheme = $scheme" | ||
echo "platform = $platform" | ||
echo "device = $device" | ||
xcodebuild test-without-building -scheme "$scheme" -"workspace" "mamba.xcworkspace" -destination "platform=$platform,name=$device" |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.