@@ -19,7 +19,8 @@ import "pkl:semver"
1919
2020local swiftTest = new RunStep {
2121 name = "swift test"
22- command = """
22+ command =
23+ """
2324 mkdir -p .out/test-results/
2425 swift test -vv --parallel --num-workers 1 --xunit-output .out/test-results/xunit.xml -Xswiftc -warnings-as-errors
2526 """
@@ -33,11 +34,13 @@ local class PklDistribution {
3334 fixed normalizedVersion : String = version.replaceAll("." , "-" )
3435
3536 /// The URL to download this distribution
36- fixed downloadUrl : String = "https://github.com/apple/pkl/releases/download/\(version) /pkl-linux-amd64"
37+ fixed downloadUrl : String =
38+ "https://github.com/apple/pkl/releases/download/\(version) /pkl-linux-amd64"
3739
3840 fixed downloadRunStep : RunStep = new {
3941 name = "Downloading pkl-\(version) "
40- command = """
42+ command =
43+ """
4144 PKL=$(mktemp /tmp/pkl-\(version) -XXXXXX)
4245 curl -L "\(downloadUrl) " > $PKL
4346 chmod +x $PKL
@@ -47,26 +50,28 @@ local class PklDistribution {
4750}
4851
4952local pklCurrent : PklDistribution = new {
50- version = "0.29 .0"
53+ version = "0.30 .0"
5154}
5255
5356local pklDistributions : Listing<PklDistribution> = new {
5457 new { version = "0.25.3" }
5558 pklCurrent
5659}
5760
58- local typealias Platform ="iOS Simulator" | "watchOS Simulator" | "tvOS Simulator" | "visionOS Simulator" | "Mac Catalyst"
61+ local typealias Platform =
62+ "iOS Simulator" | "watchOS Simulator" | "tvOS Simulator" | "visionOS Simulator" | "Mac Catalyst"
5963
6064local class SimulatorRuntime {
6165 name : String
6266 platform: Platform
63- fixed sdk: String = Map(
64- "iOS Simulator" , "iphonesimulator" ,
65- "watchOS Simulator" , "watchsimulator" ,
66- "tvOS Simulator" , "appletvsimulator" ,
67- "visionOS Simulator" , "xrsimulator" ,
68- "Mac Catalyst" , "macosx"
69- )[platform]
67+ fixed sdk: String =
68+ Map(
69+ "iOS Simulator" , "iphonesimulator" ,
70+ "watchOS Simulator" , "watchsimulator" ,
71+ "tvOS Simulator" , "appletvsimulator" ,
72+ "visionOS Simulator" , "xrsimulator" ,
73+ "Mac Catalyst" , "macosx"
74+ )[platform]
7075 hidden destination : String = "platform=\(platform) ,name=\(name) "
7176 settings : Mapping<String, Any> = new {
7277 ["ONLY_ACTIVE_ARCH" ] = "YES"
@@ -239,8 +244,8 @@ jobs {
239244 }
240245 }
241246 }
242-
243- ["test-format" ] {
247+
248+ ["test-format-swift " ] {
244249 docker {
245250 new {
246251 image = "swift:6.1-rhel-ubi9"
@@ -254,6 +259,22 @@ jobs {
254259 }
255260 }
256261
262+ ["test-format-pkl" ] {
263+ docker {
264+ new {
265+ image = "cimg/base:2024.01"
266+ }
267+ }
268+ steps {
269+ "checkout"
270+ pklCurrent.downloadRunStep
271+ new RunStep {
272+ name = "Check Formatting"
273+ command = "make pkl-format-lint"
274+ }
275+ }
276+ }
277+
257278 ["pkl-gen-swift-macos" ] {
258279 macos {
259280 xcode = "16.4.0"
@@ -263,7 +284,8 @@ jobs {
263284 "checkout"
264285 new RunStep {
265286 name = "Build pkl-gen-swift"
266- command = """
287+ command =
288+ """
267289 make pkl-gen-swift-release
268290 mkdir -p out/pkl-gen-swift/
269291 cp $(make pkl-gen-swift-release-output) out/pkl-gen-swift/pkl-gen-swift-macos.bin
@@ -285,7 +307,8 @@ jobs {
285307 "checkout"
286308 new RunStep {
287309 name = "Build pkl-gen-swift"
288- command = """
310+ command =
311+ """
289312 make pkl-gen-swift-release
290313 mkdir -p out/pkl-gen-swift/
291314 cp $(make pkl-gen-swift-release-output) out/pkl-gen-swift/pkl-gen-swift-linux-\(arch) .bin
@@ -305,7 +328,8 @@ jobs {
305328 pklCurrent.downloadRunStep
306329 new RunStep {
307330 // TODO remove skip-publish-check after initial release
308- command = #"$PKL_EXEC project package --skip-publish-check --output-path out/pkl-package/ codegen/src/"#
331+ command =
332+ #"$PKL_EXEC project package --skip-publish-check --output-path out/pkl-package/ codegen/src/"#
309333 }
310334 new PersistToWorkspaceStep {
311335 paths {
@@ -326,7 +350,8 @@ jobs {
326350 new RunStep {
327351 name = "Do release"
328352 // language=bash
329- command = #"""
353+ command =
354+ #"""
330355 EXPECTED_VERSION=$(cat VERSION.txt)
331356
332357 if [ "${EXPECTED_VERSION}" != "${CIRCLE_TAG}" ]; then
0 commit comments