Skip to content

Commit

Permalink
Merge pull request #2025 from isuruf/self-hosted-gha
Browse files Browse the repository at this point in the history
Add docs for GHA self-hosted settings
  • Loading branch information
jaimergp authored Nov 6, 2023
2 parents 3e7789d + 2ef67a5 commit 1903abf
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/maintainer/conda_forge_yml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Top-level fields
* :ref:`conda_solver`
* :ref:`docker`
* :ref:`github`
* :ref:`github_actions`
* :ref:`idle_timeout_minutes`
* :ref:`linux`
* :ref:`linux_aarch64`
Expand Down Expand Up @@ -362,6 +363,50 @@ defaults are as follows:
# conda-forge-ci-setup-feedstock references
tooling_branch_name: main
.. _github_actions:

github_actions
--------------
This dictates the behavior of the Github Actions CI service. It is a
mapping for GHA-specific configuration options. For example:

.. code-block:: yaml
github_actions:
# Is the job using Microsoft hosted free runners or 'self-hosted'.
self_hosted: false
# triggers for actions. Defaults to `['push', 'pull_request']` for
# Microsoft hosted free runners and `['push']` for self-hosted
triggers: []
# Timeout for CI jobs
timeout_minutes: 360
# Cancel in progress builds. Defaults to false for Microsoft hosted
# free runner and true for self-hosted
cancel_in_progress: None
# Maximum number of parallel jobs per build.
max_parallel: None
# Retain build artifacts for inspection
store_build_artifacts: false
# Retention period for built artifacts
artifact_retention_days: 14
For self-hosted runners ``recipe/conda_build_config.yaml`` is used for
specifying labels for the runners.

.. code-block:: yaml
github_actions_labels:
# use Microsoft free runners
- hosted # [osx or win]
# Use self-hosted runner with custom label
- - self-hosted # [linux and aarch64]
- custom-label # [linux and aarch64]
# Use self-hosted runner from cirun
- cirun-openstack-cpu-large # [linux and ppc64le]
# Use self-hosted gpu runner from cirun
- cirun-openstack-gpu-large # [linux and x86_64]
.. _idle_timeout_minutes:

idle_timeout_minutes
Expand Down Expand Up @@ -473,9 +518,15 @@ The following CI services are available:
* ``circle``
* ``travis``
* ``appveyor``
* ``github_actions``
* ``None`` or ``False`` to disable a build platform.
* ``default`` to choose an appropriate CI (only if available)

Note that ``github_actions`` is not available for the conda-forge github organization
except for self-hosted runs to avoid a denial of service due to other critical
infrastructure running on Github actions. Other github organizations may use
``github_actions`` as a CI provider.

For example, switching linux_64 & osx_64 to build on Travis CI, with win_64 on Appveyor:

.. code-block:: yaml
Expand Down

0 comments on commit 1903abf

Please sign in to comment.