@@ -37,6 +37,7 @@ Top-level fields
37
37
* :ref: `conda_solver `
38
38
* :ref: `docker `
39
39
* :ref: `github `
40
+ * :ref: `github_actions `
40
41
* :ref: `idle_timeout_minutes `
41
42
* :ref: `linux `
42
43
* :ref: `linux_aarch64 `
@@ -353,6 +354,50 @@ defaults are as follows:
353
354
# conda-forge-ci-setup-feedstock references
354
355
tooling_branch_name : main
355
356
357
+ .. _github_actions :
358
+
359
+ github_actions
360
+ --------------
361
+ This dictates the behavior of the Github Actions CI service. It is a
362
+ mapping for GHA-specific configuration options. For example:
363
+
364
+ .. code-block :: yaml
365
+
366
+ github_actions :
367
+ # Is the job using Microsoft hosted free runners or 'self-hosted'.
368
+ self_hosted : false
369
+ # triggers for actions. Defaults to `['push', 'pull_request']` for
370
+ # Microsoft hosted free runners and `['push']` for self-hosted
371
+ triggers : []
372
+ # Timeout for CI jobs
373
+ timeout_minutes : 360
374
+ # Cancel in progress builds. Defaults to false for Microsoft hosted
375
+ # free runner and true for self-hosted
376
+ cancel_in_progress : None
377
+ # Maximum number of parallel jobs per build.
378
+ max_parallel : None
379
+ # Retain build artifacts for inspection
380
+ store_build_artifacts : false
381
+ # Retention period for built artifacts
382
+ artifact_retention_days : 14
383
+
384
+ For self-hosted runners ``recipe/conda_build_config.yaml `` is used for
385
+ specifying labels for the runners.
386
+
387
+ .. code-block :: yaml
388
+
389
+ github_actions_labels :
390
+ # use Microsoft free runners
391
+ - hosted # [osx or win]
392
+ # Use self-hosted runner with custom label
393
+ - - self-hosted # [linux and aarch64]
394
+ - custom-label # [linux and aarch64]
395
+ # Use self-hosted runner from cirun
396
+ - cirun-openstack-cpu-large # [linux and ppc64le]
397
+ # Use self-hosted gpu runner from cirun
398
+ - cirun-openstack-gpu-large # [linux and x86_64]
399
+
400
+
356
401
.. _idle_timeout_minutes :
357
402
358
403
idle_timeout_minutes
0 commit comments