@@ -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 `
@@ -362,6 +363,50 @@ defaults are as follows:
362
363
# conda-forge-ci-setup-feedstock references
363
364
tooling_branch_name : main
364
365
366
+ .. _github_actions :
367
+
368
+ github_actions
369
+ --------------
370
+ This dictates the behavior of the Github Actions CI service. It is a
371
+ mapping for GHA-specific configuration options. For example:
372
+
373
+ .. code-block :: yaml
374
+
375
+ github_actions :
376
+ # Is the job using Microsoft hosted free runners or 'self-hosted'.
377
+ self_hosted : false
378
+ # triggers for actions. Defaults to `['push', 'pull_request']` for
379
+ # Microsoft hosted free runners and `['push']` for self-hosted
380
+ triggers : []
381
+ # Timeout for CI jobs
382
+ timeout_minutes : 360
383
+ # Cancel in progress builds. Defaults to false for Microsoft hosted
384
+ # free runner and true for self-hosted
385
+ cancel_in_progress : None
386
+ # Maximum number of parallel jobs per build.
387
+ max_parallel : None
388
+ # Retain build artifacts for inspection
389
+ store_build_artifacts : false
390
+ # Retention period for built artifacts
391
+ artifact_retention_days : 14
392
+
393
+ For self-hosted runners ``recipe/conda_build_config.yaml `` is used for
394
+ specifying labels for the runners.
395
+
396
+ .. code-block :: yaml
397
+
398
+ github_actions_labels :
399
+ # use Microsoft free runners
400
+ - hosted # [osx or win]
401
+ # Use self-hosted runner with custom label
402
+ - - self-hosted # [linux and aarch64]
403
+ - custom-label # [linux and aarch64]
404
+ # Use self-hosted runner from cirun
405
+ - cirun-openstack-cpu-large # [linux and ppc64le]
406
+ # Use self-hosted gpu runner from cirun
407
+ - cirun-openstack-gpu-large # [linux and x86_64]
408
+
409
+
365
410
.. _idle_timeout_minutes :
366
411
367
412
idle_timeout_minutes
@@ -473,9 +518,15 @@ The following CI services are available:
473
518
* ``circle ``
474
519
* ``travis ``
475
520
* ``appveyor ``
521
+ * ``github_actions ``
476
522
* ``None `` or ``False `` to disable a build platform.
477
523
* ``default `` to choose an appropriate CI (only if available)
478
524
525
+ Note that ``github_actions `` is not available for the conda-forge github organization
526
+ except for self-hosted runs to avoid a denial of service due to other critical
527
+ infrastructure running on Github actions. Other github organizations may use
528
+ ``github_actions `` as a CI provider.
529
+
479
530
For example, switching linux_64 & osx_64 to build on Travis CI, with win_64 on Appveyor:
480
531
481
532
.. code-block :: yaml
0 commit comments