Skip to content

Commit a5ab96f

Browse files
committed
Fix simulator testing
1 parent fe81a98 commit a5ab96f

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

.github/index.pkl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ prb {
153153
}
154154
steps {
155155
new Common.Checkout {}
156+
new { run = "brew install gmp libyaml" }
156157
new {
157158
uses = "ruby/setup-ruby@v1"
158159
with {
@@ -162,6 +163,10 @@ prb {
162163
new { run = "gem install xcpretty" }
163164
new {
164165
name = "xcodebuild test"
166+
env {
167+
// needed for xcpretty: https://github.com/xcpretty/xcpretty/issues/73
168+
["LC_CTYPE"] = "en_US.UTF-8"
169+
}
165170
run =
166171
#"""
167172
xcodebuild -scheme pkl-swift-Package \#(simulator.flags.join(" ")) test \

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ jobs:
9191
DEVELOPER_DIR: /Applications/Xcode_26.1.app
9292
steps:
9393
- uses: actions/checkout@v5
94+
- run: brew install gmp libyaml
9495
- uses: ruby/setup-ruby@v1
9596
with:
9697
ruby-version: '3.4'
9798
- run: gem install xcpretty
9899
- name: xcodebuild test
100+
env:
101+
LC_CTYPE: en_US.UTF-8
99102
run: |-
100103
xcodebuild -scheme pkl-swift-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
101104
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
@@ -115,11 +118,14 @@ jobs:
115118
DEVELOPER_DIR: /Applications/Xcode_26.1.app
116119
steps:
117120
- uses: actions/checkout@v5
121+
- run: brew install gmp libyaml
118122
- uses: ruby/setup-ruby@v1
119123
with:
120124
ruby-version: '3.4'
121125
- run: gem install xcpretty
122126
- name: xcodebuild test
127+
env:
128+
LC_CTYPE: en_US.UTF-8
123129
run: |-
124130
xcodebuild -scheme pkl-swift-Package -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
125131
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
@@ -139,11 +145,14 @@ jobs:
139145
DEVELOPER_DIR: /Applications/Xcode_26.1.app
140146
steps:
141147
- uses: actions/checkout@v5
148+
- run: brew install gmp libyaml
142149
- uses: ruby/setup-ruby@v1
143150
with:
144151
ruby-version: '3.4'
145152
- run: gem install xcpretty
146153
- name: xcodebuild test
154+
env:
155+
LC_CTYPE: en_US.UTF-8
147156
run: |-
148157
xcodebuild -scheme pkl-swift-Package -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
149158
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
@@ -163,11 +172,14 @@ jobs:
163172
DEVELOPER_DIR: /Applications/Xcode_26.1.app
164173
steps:
165174
- uses: actions/checkout@v5
175+
- run: brew install gmp libyaml
166176
- uses: ruby/setup-ruby@v1
167177
with:
168178
ruby-version: '3.4'
169179
- run: gem install xcpretty
170180
- name: xcodebuild test
181+
env:
182+
LC_CTYPE: en_US.UTF-8
171183
run: |-
172184
xcodebuild -scheme pkl-swift-Package -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst,arch=arm64' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO ARCH=arm64 VALID_ARCHS=arm64 SUPPORTS_MACCATALYST=YES TARGETED_DEVICE_FAMILY=2 CODE_SIGN_IDENTITY=- test \
173185
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ jobs:
9090
DEVELOPER_DIR: /Applications/Xcode_26.1.app
9191
steps:
9292
- uses: actions/checkout@v5
93+
- run: brew install gmp libyaml
9394
- uses: ruby/setup-ruby@v1
9495
with:
9596
ruby-version: '3.4'
9697
- run: gem install xcpretty
9798
- name: xcodebuild test
99+
env:
100+
LC_CTYPE: en_US.UTF-8
98101
run: |-
99102
xcodebuild -scheme pkl-swift-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
100103
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
@@ -114,11 +117,14 @@ jobs:
114117
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115118
steps:
116119
- uses: actions/checkout@v5
120+
- run: brew install gmp libyaml
117121
- uses: ruby/setup-ruby@v1
118122
with:
119123
ruby-version: '3.4'
120124
- run: gem install xcpretty
121125
- name: xcodebuild test
126+
env:
127+
LC_CTYPE: en_US.UTF-8
122128
run: |-
123129
xcodebuild -scheme pkl-swift-Package -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
124130
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
@@ -138,11 +144,14 @@ jobs:
138144
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139145
steps:
140146
- uses: actions/checkout@v5
147+
- run: brew install gmp libyaml
141148
- uses: ruby/setup-ruby@v1
142149
with:
143150
ruby-version: '3.4'
144151
- run: gem install xcpretty
145152
- name: xcodebuild test
153+
env:
154+
LC_CTYPE: en_US.UTF-8
146155
run: |-
147156
xcodebuild -scheme pkl-swift-Package -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
148157
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
@@ -162,11 +171,14 @@ jobs:
162171
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163172
steps:
164173
- uses: actions/checkout@v5
174+
- run: brew install gmp libyaml
165175
- uses: ruby/setup-ruby@v1
166176
with:
167177
ruby-version: '3.4'
168178
- run: gem install xcpretty
169179
- name: xcodebuild test
180+
env:
181+
LC_CTYPE: en_US.UTF-8
170182
run: |-
171183
xcodebuild -scheme pkl-swift-Package -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst,arch=arm64' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO ARCH=arm64 VALID_ARCHS=arm64 SUPPORTS_MACCATALYST=YES TARGETED_DEVICE_FAMILY=2 CODE_SIGN_IDENTITY=- test \
172184
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml

.github/workflows/prb.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,14 @@ jobs:
8888
DEVELOPER_DIR: /Applications/Xcode_26.1.app
8989
steps:
9090
- uses: actions/checkout@v5
91+
- run: brew install gmp libyaml
9192
- uses: ruby/setup-ruby@v1
9293
with:
9394
ruby-version: '3.4'
9495
- run: gem install xcpretty
9596
- name: xcodebuild test
97+
env:
98+
LC_CTYPE: en_US.UTF-8
9699
run: |-
97100
xcodebuild -scheme pkl-swift-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
98101
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
@@ -113,11 +116,14 @@ jobs:
113116
DEVELOPER_DIR: /Applications/Xcode_26.1.app
114117
steps:
115118
- uses: actions/checkout@v5
119+
- run: brew install gmp libyaml
116120
- uses: ruby/setup-ruby@v1
117121
with:
118122
ruby-version: '3.4'
119123
- run: gem install xcpretty
120124
- name: xcodebuild test
125+
env:
126+
LC_CTYPE: en_US.UTF-8
121127
run: |-
122128
xcodebuild -scheme pkl-swift-Package -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
123129
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
@@ -138,11 +144,14 @@ jobs:
138144
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139145
steps:
140146
- uses: actions/checkout@v5
147+
- run: brew install gmp libyaml
141148
- uses: ruby/setup-ruby@v1
142149
with:
143150
ruby-version: '3.4'
144151
- run: gem install xcpretty
145152
- name: xcodebuild test
153+
env:
154+
LC_CTYPE: en_US.UTF-8
146155
run: |-
147156
xcodebuild -scheme pkl-swift-Package -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
148157
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
@@ -163,11 +172,14 @@ jobs:
163172
DEVELOPER_DIR: /Applications/Xcode_26.1.app
164173
steps:
165174
- uses: actions/checkout@v5
175+
- run: brew install gmp libyaml
166176
- uses: ruby/setup-ruby@v1
167177
with:
168178
ruby-version: '3.4'
169179
- run: gem install xcpretty
170180
- name: xcodebuild test
181+
env:
182+
LC_CTYPE: en_US.UTF-8
171183
run: |-
172184
xcodebuild -scheme pkl-swift-Package -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst,arch=arm64' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO ARCH=arm64 VALID_ARCHS=arm64 SUPPORTS_MACCATALYST=YES TARGETED_DEVICE_FAMILY=2 CODE_SIGN_IDENTITY=- test \
173185
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml

.github/workflows/release-branch.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ jobs:
9090
DEVELOPER_DIR: /Applications/Xcode_26.1.app
9191
steps:
9292
- uses: actions/checkout@v5
93+
- run: brew install gmp libyaml
9394
- uses: ruby/setup-ruby@v1
9495
with:
9596
ruby-version: '3.4'
9697
- run: gem install xcpretty
9798
- name: xcodebuild test
99+
env:
100+
LC_CTYPE: en_US.UTF-8
98101
run: |-
99102
xcodebuild -scheme pkl-swift-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
100103
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
@@ -114,11 +117,14 @@ jobs:
114117
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115118
steps:
116119
- uses: actions/checkout@v5
120+
- run: brew install gmp libyaml
117121
- uses: ruby/setup-ruby@v1
118122
with:
119123
ruby-version: '3.4'
120124
- run: gem install xcpretty
121125
- name: xcodebuild test
126+
env:
127+
LC_CTYPE: en_US.UTF-8
122128
run: |-
123129
xcodebuild -scheme pkl-swift-Package -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
124130
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
@@ -138,11 +144,14 @@ jobs:
138144
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139145
steps:
140146
- uses: actions/checkout@v5
147+
- run: brew install gmp libyaml
141148
- uses: ruby/setup-ruby@v1
142149
with:
143150
ruby-version: '3.4'
144151
- run: gem install xcpretty
145152
- name: xcodebuild test
153+
env:
154+
LC_CTYPE: en_US.UTF-8
146155
run: |-
147156
xcodebuild -scheme pkl-swift-Package -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
148157
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
@@ -162,11 +171,14 @@ jobs:
162171
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163172
steps:
164173
- uses: actions/checkout@v5
174+
- run: brew install gmp libyaml
165175
- uses: ruby/setup-ruby@v1
166176
with:
167177
ruby-version: '3.4'
168178
- run: gem install xcpretty
169179
- name: xcodebuild test
180+
env:
181+
LC_CTYPE: en_US.UTF-8
170182
run: |-
171183
xcodebuild -scheme pkl-swift-Package -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst,arch=arm64' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO ARCH=arm64 VALID_ARCHS=arm64 SUPPORTS_MACCATALYST=YES TARGETED_DEVICE_FAMILY=2 CODE_SIGN_IDENTITY=- test \
172184
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ jobs:
9090
DEVELOPER_DIR: /Applications/Xcode_26.1.app
9191
steps:
9292
- uses: actions/checkout@v5
93+
- run: brew install gmp libyaml
9394
- uses: ruby/setup-ruby@v1
9495
with:
9596
ruby-version: '3.4'
9697
- run: gem install xcpretty
9798
- name: xcodebuild test
99+
env:
100+
LC_CTYPE: en_US.UTF-8
98101
run: |-
99102
xcodebuild -scheme pkl-swift-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
100103
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
@@ -114,11 +117,14 @@ jobs:
114117
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115118
steps:
116119
- uses: actions/checkout@v5
120+
- run: brew install gmp libyaml
117121
- uses: ruby/setup-ruby@v1
118122
with:
119123
ruby-version: '3.4'
120124
- run: gem install xcpretty
121125
- name: xcodebuild test
126+
env:
127+
LC_CTYPE: en_US.UTF-8
122128
run: |-
123129
xcodebuild -scheme pkl-swift-Package -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
124130
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
@@ -138,11 +144,14 @@ jobs:
138144
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139145
steps:
140146
- uses: actions/checkout@v5
147+
- run: brew install gmp libyaml
141148
- uses: ruby/setup-ruby@v1
142149
with:
143150
ruby-version: '3.4'
144151
- run: gem install xcpretty
145152
- name: xcodebuild test
153+
env:
154+
LC_CTYPE: en_US.UTF-8
146155
run: |-
147156
xcodebuild -scheme pkl-swift-Package -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO test \
148157
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
@@ -162,11 +171,14 @@ jobs:
162171
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163172
steps:
164173
- uses: actions/checkout@v5
174+
- run: brew install gmp libyaml
165175
- uses: ruby/setup-ruby@v1
166176
with:
167177
ruby-version: '3.4'
168178
- run: gem install xcpretty
169179
- name: xcodebuild test
180+
env:
181+
LC_CTYPE: en_US.UTF-8
170182
run: |-
171183
xcodebuild -scheme pkl-swift-Package -sdk macosx -destination 'platform=macOS,variant=Mac Catalyst,arch=arm64' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO ARCH=arm64 VALID_ARCHS=arm64 SUPPORTS_MACCATALYST=YES TARGETED_DEVICE_FAMILY=2 CODE_SIGN_IDENTITY=- test \
172184
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml

0 commit comments

Comments
 (0)