Skip to content

Commit 18cee9d

Browse files
authored
[com.circleci] Add missing resource classes, fix job constraint (#58)
1 parent 06d629e commit 18cee9d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

packages/com.circleci.v2/Config.pkl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Job {
172172
resource_class: ResourceClass?
173173

174174
/// Options for [docker executor](https://circleci.com/docs/configuration-reference/#docker)
175-
docker: Listing<DockerImage>(!isEmpty)?(onlyOneSet(List(this, macos, machine)))
175+
docker: Listing<DockerImage>(!isEmpty)?(onlyOneSet(List(this, executor, macos, machine)))
176176

177177
/// CircleCI supports running jobs on macOS, to allow you to build, test, and deploy apps for
178178
/// macOS, iOS, tvOS and watchOS.
@@ -199,6 +199,18 @@ typealias ResourceClass =
199199
|"arm.2xlarge"
200200
|"macos.m1.medium.gen1"
201201
|"macos.m1.large.gen1"
202+
|"windows.medium"
203+
|"windows.large"
204+
|"windows.xlarge"
205+
|"windows.2xlarge"
206+
|"gpu.nvidia.small"
207+
|"gpu.nvidia.small.gen2"
208+
|"gpu.nvidia.small.multi"
209+
|"gpu.nvidia.medium.multi"
210+
|"gpu.nvidia.medium"
211+
|"gpu.nvidia.large"
212+
|"windows.gpu.nvidia.medium"
213+
202214

203215
class MacOSExecutor {
204216
/// The version of Xcode that is installed on the virtual machine, see the

packages/com.circleci.v2/PklProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
amends "../basePklProject.pkl"
1818

1919
package {
20-
version = "1.1.1"
20+
version = "1.1.2"
2121
}

0 commit comments

Comments
 (0)