make all (macOS) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run "make all" on selected macOS and Python versions. | |
name: make all (macOS) | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | |
on: | |
# Trigger workflow on push event. | |
#push: | |
# branches: [ ci ] | |
# Trigger workflow on pull request. | |
# pull_request: | |
# branches: [ ci ] | |
# Trigger workflow in GitHub web frontend or from API. | |
workflow_dispatch: | |
inputs: | |
os: | |
# https://docs.github.com/de/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners | |
description: 'Operating system' | |
required: true | |
default: 'macos-14' | |
type: choice | |
options: | |
- 'macos-11' | |
- 'macos-12' | |
- 'macos-13' | |
- 'macos-14' | |
python-version: | |
description: 'Python version' | |
required: true | |
default: '3.9' | |
type: choice | |
options: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
jobs: | |
# Run builds for selected OS and Python versions. | |
build: | |
if: ${{ (github.event.inputs.os != '') && (github.event.inputs.python-version != '') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['${{ github.event.inputs.os }}'] | |
python-version: ['${{ github.event.inputs.python-version }}'] | |
runs-on: ${{ matrix.os }} | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- name: Show inputs.os | |
run: echo ${{ inputs.os }} | |
- name: Show environment | |
run: echo "OS=${{ env.OS }}, PYTHON_VERSION=${{ env.PYTHON_VERSION }} ($(python --version))" |