diff --git a/cookiecutter.json b/cookiecutter.json index 323424a..23d00fd 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -8,6 +8,8 @@ "use_bsd3_licence": false, "add_precommit_workflows": true, "automerge_bot_prs": false, + "use_windows_ci_runner": false, + "use_macos_ci_runner": false, "__prompts__": { "project_name": "Enter a human-readable name for the project", "project_slug": "Enter a name for the Python package", @@ -17,6 +19,8 @@ "packaging": "Select the Python packaging tool you wish to use", "use_bsd3_licence": "Whether to use Imperial's default open-source licence (BSD 3-clause)", "add_precommit_workflows": "Add Github Actions to run pre-commit hooks (only needed for private repositories)", + "use_windows_ci_runner": "Add a GitHub Actions runner for Windows (needed if your software targets Windows)", + "use_macos_ci_runner": "Add a GitHub Actions runner for macOS (needed if your software targets macOS - ARM)", "automerge_bot_prs": "Whether to automatically merge PRs from bots including dependabot" } } diff --git a/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml b/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml index 41a45fc..87f5468 100644 --- a/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml +++ b/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml @@ -12,7 +12,13 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: + - ubuntu-latest +{%- if cookiecutter.use_windows_ci_runner %} + - windows-latest +{%- endif %} +{%- if cookiecutter.use_macos_ci_runner %} + - macos-latest{% endif %} python-version: ["3.12"] steps: