Skip to content

Commit

Permalink
ci: Use latest checkout action, macOS, and Xcode (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed Feb 23, 2024
1 parent 5ae49fe commit 4130032
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 20 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on: [pull_request]

jobs:
pod-lint:
runs-on: macos-12
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app

- name: Update xcodeproj gem
run: sudo gem install xcodeproj
Expand All @@ -22,10 +25,13 @@ jobs:
run: git checkout *.podspec

carthage-build:
runs-on: macos-12
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app

- name: Build with Carthage
run: ./Scripts/carthage.sh build --no-skip-current || true
Expand All @@ -37,13 +43,16 @@ jobs:
run: ls 2>&1 | grep .framework.zip

compile-extension:
runs-on: macos-12
runs-on: macOS-13
defaults:
run:
working-directory: ./Example
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app

- name: Update CocoaPods repo
run: pod repo update
Expand All @@ -55,10 +64,13 @@ jobs:
run: xcodebuild -allowProvisioningUpdates -workspace mParticleExample.xcworkspace -scheme mParticleExample_Extension -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest'

run-analyzer:
runs-on: macos-12
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app

- name: Run static analyzer
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cross-platform-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ on:
jobs:
run-ios-tests:
timeout-minutes: 30
runs-on: macos-12
runs-on: macOS-13
steps:
- name: "Checkout Cross Platform Tests"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "true"
repository: mParticle/crossplatform-sdk-tests
fetch-depth: 1
- name: "Checkout iOS SDK"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
path: .sdks/apple
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
native-unit-tests:
strategy:
matrix:
xcode: ["15.0"]
xcode: ["15.2"]
platform: [iOS, tvOS]
scheme: [mParticle-Apple-SDK, mParticle-Apple-SDK-NoLocation]
include:
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

create-release-branch:
name: Create release branch
runs-on: macOS-12
runs-on: macOS-13
needs: confirm-main-branch
steps:
- name: Checkout development branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
token: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }}
Expand All @@ -33,14 +33,17 @@ jobs:
release:
name: Perform release
runs-on: macOS-12
runs-on: macOS-13
needs: create-release-branch
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app

- name: Validate environment
env:
Expand All @@ -66,7 +69,7 @@ jobs:
git config user.name "mParticle Automation"
- name: Checkout main branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.repository }}
Expand Down Expand Up @@ -152,10 +155,10 @@ jobs:
sync-repository:
name: Finalize release
needs: release
runs-on: macOS-12
runs-on: macOS-13
steps:
- name: Checkout main branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.repository }}
Expand Down

0 comments on commit 4130032

Please sign in to comment.