From 2a169494497adaaf85cbf531fc368d0b9e0af10b Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Sat, 20 Jan 2024 20:09:43 -0500 Subject: [PATCH] build.yml test.yml update github runner env Signed-off-by: Joseph Mattello --- .github/workflows/build.yml | 21 +++++++++++++++------ .github/workflows/test.yml | 8 ++++---- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a2ac5d8..7edece02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ on: push: - branches: + branches: - master name: Build jobs: @@ -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 }} \ No newline at end of file + 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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eba75f01..bc7415c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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