Skip to content

Commit 504c056

Browse files
committed
Fix simulator testing
1 parent fe81a98 commit 504c056

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

.github/index.pkl

Lines changed: 2 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 {
@@ -164,6 +165,7 @@ prb {
164165
name = "xcodebuild test"
165166
run =
166167
#"""
168+
export LC_CTYPE=en_US.UTF-8
167169
xcodebuild -scheme pkl-swift-Package \#(simulator.flags.join(" ")) test \
168170
| xcpretty --report junit --output .out/test-results/test-sim-\#(simulator.platformId).xml
169171
"""#

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +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
99100
run: |-
101+
export LC_CTYPE=en_US.UTF-8
100102
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 \
101103
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
102104
- name: Upload Test Result XML
@@ -115,12 +117,14 @@ jobs:
115117
DEVELOPER_DIR: /Applications/Xcode_26.1.app
116118
steps:
117119
- uses: actions/checkout@v5
120+
- run: brew install gmp libyaml
118121
- uses: ruby/setup-ruby@v1
119122
with:
120123
ruby-version: '3.4'
121124
- run: gem install xcpretty
122125
- name: xcodebuild test
123126
run: |-
127+
export LC_CTYPE=en_US.UTF-8
124128
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 \
125129
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
126130
- name: Upload Test Result XML
@@ -139,12 +143,14 @@ jobs:
139143
DEVELOPER_DIR: /Applications/Xcode_26.1.app
140144
steps:
141145
- uses: actions/checkout@v5
146+
- run: brew install gmp libyaml
142147
- uses: ruby/setup-ruby@v1
143148
with:
144149
ruby-version: '3.4'
145150
- run: gem install xcpretty
146151
- name: xcodebuild test
147152
run: |-
153+
export LC_CTYPE=en_US.UTF-8
148154
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 \
149155
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
150156
- name: Upload Test Result XML
@@ -163,12 +169,14 @@ jobs:
163169
DEVELOPER_DIR: /Applications/Xcode_26.1.app
164170
steps:
165171
- uses: actions/checkout@v5
172+
- run: brew install gmp libyaml
166173
- uses: ruby/setup-ruby@v1
167174
with:
168175
ruby-version: '3.4'
169176
- run: gem install xcpretty
170177
- name: xcodebuild test
171178
run: |-
179+
export LC_CTYPE=en_US.UTF-8
172180
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 \
173181
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml
174182
- name: Upload Test Result XML

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +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
9899
run: |-
100+
export LC_CTYPE=en_US.UTF-8
99101
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 \
100102
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
101103
- name: Upload Test Result XML
@@ -114,12 +116,14 @@ jobs:
114116
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115117
steps:
116118
- uses: actions/checkout@v5
119+
- run: brew install gmp libyaml
117120
- uses: ruby/setup-ruby@v1
118121
with:
119122
ruby-version: '3.4'
120123
- run: gem install xcpretty
121124
- name: xcodebuild test
122125
run: |-
126+
export LC_CTYPE=en_US.UTF-8
123127
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 \
124128
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
125129
- name: Upload Test Result XML
@@ -138,12 +142,14 @@ jobs:
138142
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139143
steps:
140144
- uses: actions/checkout@v5
145+
- run: brew install gmp libyaml
141146
- uses: ruby/setup-ruby@v1
142147
with:
143148
ruby-version: '3.4'
144149
- run: gem install xcpretty
145150
- name: xcodebuild test
146151
run: |-
152+
export LC_CTYPE=en_US.UTF-8
147153
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 \
148154
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
149155
- name: Upload Test Result XML
@@ -162,12 +168,14 @@ jobs:
162168
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163169
steps:
164170
- uses: actions/checkout@v5
171+
- run: brew install gmp libyaml
165172
- uses: ruby/setup-ruby@v1
166173
with:
167174
ruby-version: '3.4'
168175
- run: gem install xcpretty
169176
- name: xcodebuild test
170177
run: |-
178+
export LC_CTYPE=en_US.UTF-8
171179
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 \
172180
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml
173181
- name: Upload Test Result XML

.github/workflows/prb.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +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
9697
run: |-
98+
export LC_CTYPE=en_US.UTF-8
9799
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 \
98100
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
99101
- name: Upload Test Result XML
@@ -113,12 +115,14 @@ jobs:
113115
DEVELOPER_DIR: /Applications/Xcode_26.1.app
114116
steps:
115117
- uses: actions/checkout@v5
118+
- run: brew install gmp libyaml
116119
- uses: ruby/setup-ruby@v1
117120
with:
118121
ruby-version: '3.4'
119122
- run: gem install xcpretty
120123
- name: xcodebuild test
121124
run: |-
125+
export LC_CTYPE=en_US.UTF-8
122126
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 \
123127
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
124128
- name: Upload Test Result XML
@@ -138,12 +142,14 @@ jobs:
138142
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139143
steps:
140144
- uses: actions/checkout@v5
145+
- run: brew install gmp libyaml
141146
- uses: ruby/setup-ruby@v1
142147
with:
143148
ruby-version: '3.4'
144149
- run: gem install xcpretty
145150
- name: xcodebuild test
146151
run: |-
152+
export LC_CTYPE=en_US.UTF-8
147153
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 \
148154
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
149155
- name: Upload Test Result XML
@@ -163,12 +169,14 @@ jobs:
163169
DEVELOPER_DIR: /Applications/Xcode_26.1.app
164170
steps:
165171
- uses: actions/checkout@v5
172+
- run: brew install gmp libyaml
166173
- uses: ruby/setup-ruby@v1
167174
with:
168175
ruby-version: '3.4'
169176
- run: gem install xcpretty
170177
- name: xcodebuild test
171178
run: |-
179+
export LC_CTYPE=en_US.UTF-8
172180
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 \
173181
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml
174182
- name: Upload Test Result XML

.github/workflows/release-branch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +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
9899
run: |-
100+
export LC_CTYPE=en_US.UTF-8
99101
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 \
100102
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
101103
- name: Upload Test Result XML
@@ -114,12 +116,14 @@ jobs:
114116
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115117
steps:
116118
- uses: actions/checkout@v5
119+
- run: brew install gmp libyaml
117120
- uses: ruby/setup-ruby@v1
118121
with:
119122
ruby-version: '3.4'
120123
- run: gem install xcpretty
121124
- name: xcodebuild test
122125
run: |-
126+
export LC_CTYPE=en_US.UTF-8
123127
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 \
124128
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
125129
- name: Upload Test Result XML
@@ -138,12 +142,14 @@ jobs:
138142
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139143
steps:
140144
- uses: actions/checkout@v5
145+
- run: brew install gmp libyaml
141146
- uses: ruby/setup-ruby@v1
142147
with:
143148
ruby-version: '3.4'
144149
- run: gem install xcpretty
145150
- name: xcodebuild test
146151
run: |-
152+
export LC_CTYPE=en_US.UTF-8
147153
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 \
148154
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
149155
- name: Upload Test Result XML
@@ -162,12 +168,14 @@ jobs:
162168
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163169
steps:
164170
- uses: actions/checkout@v5
171+
- run: brew install gmp libyaml
165172
- uses: ruby/setup-ruby@v1
166173
with:
167174
ruby-version: '3.4'
168175
- run: gem install xcpretty
169176
- name: xcodebuild test
170177
run: |-
178+
export LC_CTYPE=en_US.UTF-8
171179
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 \
172180
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml
173181
- name: Upload Test Result XML

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +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
9899
run: |-
100+
export LC_CTYPE=en_US.UTF-8
99101
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 \
100102
| xcpretty --report junit --output .out/test-results/test-sim-ios-simulator.xml
101103
- name: Upload Test Result XML
@@ -114,12 +116,14 @@ jobs:
114116
DEVELOPER_DIR: /Applications/Xcode_26.1.app
115117
steps:
116118
- uses: actions/checkout@v5
119+
- run: brew install gmp libyaml
117120
- uses: ruby/setup-ruby@v1
118121
with:
119122
ruby-version: '3.4'
120123
- run: gem install xcpretty
121124
- name: xcodebuild test
122125
run: |-
126+
export LC_CTYPE=en_US.UTF-8
123127
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 \
124128
| xcpretty --report junit --output .out/test-results/test-sim-watchos-simulator.xml
125129
- name: Upload Test Result XML
@@ -138,12 +142,14 @@ jobs:
138142
DEVELOPER_DIR: /Applications/Xcode_26.1.app
139143
steps:
140144
- uses: actions/checkout@v5
145+
- run: brew install gmp libyaml
141146
- uses: ruby/setup-ruby@v1
142147
with:
143148
ruby-version: '3.4'
144149
- run: gem install xcpretty
145150
- name: xcodebuild test
146151
run: |-
152+
export LC_CTYPE=en_US.UTF-8
147153
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 \
148154
| xcpretty --report junit --output .out/test-results/test-sim-tvos-simulator.xml
149155
- name: Upload Test Result XML
@@ -162,12 +168,14 @@ jobs:
162168
DEVELOPER_DIR: /Applications/Xcode_26.1.app
163169
steps:
164170
- uses: actions/checkout@v5
171+
- run: brew install gmp libyaml
165172
- uses: ruby/setup-ruby@v1
166173
with:
167174
ruby-version: '3.4'
168175
- run: gem install xcpretty
169176
- name: xcodebuild test
170177
run: |-
178+
export LC_CTYPE=en_US.UTF-8
171179
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 \
172180
| xcpretty --report junit --output .out/test-results/test-sim-mac-catalyst.xml
173181
- name: Upload Test Result XML

0 commit comments

Comments
 (0)