Skip to content

Commit 5eae43b

Browse files
committed
refactor rake
1 parent 1b61bf7 commit 5eae43b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ jobs:
171171
watchOsVersion: '10.5'
172172
watchDeviceModel: Apple Watch Series 9 (45mm)
173173
developerDir: CI_XCODE_15
174-
- name: LiveQuery Module, tvOS 17.5
174+
- name: LiveQuery Module, tvOS 17
175175
script: test:parse_live_query:tvos
176176
tvOsVersion: '17.5'
177177
tvDeviceModel: Apple TV
178178
developerDir: CI_XCODE_16
179-
- name: LiveQuery Module, tvOS 18.1
179+
- name: LiveQuery Module, tvOS 18
180180
script: test:parse_live_query:tvos
181181
tvOsVersion: '18.1'
182182
tvDeviceModel: Apple TV

Rakefile

+10-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ require_relative 'Vendor/xctoolchain/Scripts/xctask/build_task'
1212
SCRIPT_PATH = File.expand_path(File.dirname(__FILE__))
1313
starters_path = File.join(SCRIPT_PATH, 'ParseStarterProject')
1414

15-
ios_simulator = "platform=\"iOS Simulator\",name=\"#{ENV['IOS_DEVICE_MODEL'] || 'iPhone 16'}\",OS=\"#{ENV['IOS_VERSION'] || '17.5'}\""
16-
tvos_simulator = "platform=\"tvOS Simulator\",name=\"#{ENV['TV_DEVICE_MODEL'] || 'Apple TV'}\",OS=\"#{ENV['TV_OS_VERSION'] || '18.1'}\""
17-
watchos_simulator = "platform=\"watchOS Simulator\",name=\"#{ENV['WATCH_DEVICE_MODEL'] || 'Apple Watch Series 10 (46mm)'}\",OS=\"#{ENV['WATCH_OS_VERSION'] || '11.2'}\""
15+
ios_version = ENV.fetch('IOS_VERSION')
16+
tvos_version = ENV.fetch('TV_OS_VERSION')
17+
watchos_version = ENV.fetch('WATCH_OS_VERSION')
18+
ios_device_model = ENV.fetch('IOS_DEVICE_MODEL')
19+
tv_device_model = ENV.fetch('TV_DEVICE_MODEL')
20+
watch_device_model = ENV.fetch('WATCH_DEVICE_MODEL')
21+
22+
ios_simulator = "platform=\"iOS Simulator\",name=\"#{ios_device_model}\",OS=\"#{ios_version}\""
23+
tvos_simulator = "platform=\"tvOS Simulator\",name=\"#{tv_device_model}\",OS=\"#{tvos_version}\""
24+
watchos_simulator = "platform=\"watchOS Simulator\",name=\"#{watch_device_model}\",OS=\"#{watchos_version}\""
1825

1926
build_action = [XCTask::BuildAction::CLEAN, XCTask::BuildAction::BUILD];
2027

0 commit comments

Comments
 (0)