Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Jan 27, 2025
1 parent 40c9f40 commit e953477
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,24 @@ jobs:
developerDir: CI_XCODE_16
- name: iOS 17, iPhone 15
script: test:ios
osVersion: '17.5'
deviceModel: 'iPhone 15'
iosVersion: '17.5'
deviceModel: iPhone 15
developerDir: CI_XCODE_16
- name: iOS 18, iPhone 16
script: test:ios
osVersion: '18.1'
deviceModel: 'iPhone 16'
iosVersion: '18.1'
deviceModel: iPhone 16
developerDir: CI_XCODE_16
- name: macOS 14
script: test:macos
osVersion: 14
macosVersion: 14
developerDir: CI_XCODE_16
- name: macOS 15
script: test:macos
macosVersion: 15
developerDir: CI_XCODE_16
fail-fast: false
runs-on: macos-14
runs-on: macos-${{ matrix.macosVersion || 14 }}
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
Expand All @@ -152,7 +156,7 @@ jobs:
- name: Submodules
run: git submodule update --init --recursive
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES OS_VERSION="${{ matrix.osVersion }}" DEVICE_MODEL="${{ matrix.deviceModel }}" bundle exec rake ${{ matrix.script }}
run: set -o pipefail && env NSUnbufferedIO=YES IOS_VERSION="${{ matrix.iosVersion }}" DEVICE_MODEL="${{ matrix.deviceModel }}" bundle exec rake ${{ matrix.script }}
env:
DEVELOPER_DIR: ${{ env[matrix.developerDir] }}
- name: Generate Environment Variables
Expand Down
5 changes: 1 addition & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ require_relative 'Vendor/xctoolchain/Scripts/xctask/build_task'
SCRIPT_PATH = File.expand_path(File.dirname(__FILE__))
starters_path = File.join(SCRIPT_PATH, 'ParseStarterProject')

puts "Device model: #{ENV['DEVICE_MODEL']}"
puts "OS version: #{ENV['OS_VERSION']}"

ios_simulator = "platform=\"iOS Simulator\",name=\"#{ENV['DEVICE_MODEL'] || 'iPhone 16'}\",OS=\"#{ENV['OS_VERSION'] || '17.0'}\""
ios_simulator = "platform=\"iOS Simulator\",name=\"#{ENV['DEVICE_MODEL'] || 'iPhone 16'}\",OS=\"#{ENV['IOS_VERSION'] || '17.0'}\""
tvos_simulator = 'platform="tvOS Simulator",name="Apple TV"'
watchos_simulator = 'platform="watchOS Simulator",name="Apple Watch Series 10 (46mm)"'

Expand Down

0 comments on commit e953477

Please sign in to comment.