Skip to content

Commit

Permalink
build.yml test.yml update github runner env
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
  • Loading branch information
JoeMatt committed Jan 21, 2024
1 parent 45aed92 commit 2a16949
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches:
branches:
- master
name: Build
jobs:
Expand All @@ -10,14 +10,23 @@ jobs:
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=12.4,name=iPhone X',
'platform=tvOS Simulator,OS=12.4,name=Apple TV 4']
'platform=iOS Simulator,OS=16.2,name=iPhone X',
'platform=tvOS Simulator,OS=16.1,name=Apple TV 4']
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build
run: |
pod install
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
env:
destination: ${{ matrix.destination }}
set -o pipefail && \
xcodebuild clean build \
-workspace Hero.xcworkspace \
-scheme Hero \
-destination "${destination}" \
-parallelizeTargets -showBuildTimingSummary \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
| xcpretty
env:
destination: ${{ matrix.destination }}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
- "**.podspec"
- "Podfile"
- "Podfile.lock"
- "test.yml"
- "**/test.yml"
jobs:
swiftpm:
name: Test iOS (swiftpm)
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -28,11 +28,11 @@ jobs:
name: Test iOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=14.4,name=iPhone 12'
'platform=iOS Simulator,iOS=16.2,name=iPhone X'
]
steps:
- name: Checkout
Expand Down

0 comments on commit 2a16949

Please sign in to comment.