-
Notifications
You must be signed in to change notification settings - Fork 17
71 lines (63 loc) · 2.3 KB
/
makeall.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Run "make all" on selected Ubuntu and Python versions.
name: make all
# 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:
description: 'Operating system'
required: true
default: 'any'
type: choice
options:
- 'any'
- 'ubuntu-20.04'
- 'ubuntu-22.04'
python-version:
description: 'Python version'
required: true
default: 'any'
type: choice
options:
- 'any'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
jobs:
# Run builds for all Ubuntu and Python versions.
build-any:
# https://docs.github.com/en/actions/learn-github-actions/expressions
if: ${{ (github.event.inputs.os == 'any') && (github.event.inputs.python-version == 'any') || (github.event.inputs.os == '') }}
uses: ./.github/workflows/makeall-linux.yaml
with:
os: "['ubuntu-20.04', 'ubuntu-22.04']"
python-version: "['3.8', '3.9', '3.10', '3.11']"
# Run builds for all Ubuntu versions and selected Python version.
build-any-os:
if: ${{ (github.event.inputs.os == 'any') && (github.event.inputs.python-version != 'any') }}
uses: ./.github/workflows/makeall-linux.yaml
with:
os: "['ubuntu-20.04', 'ubuntu-22.04']"
python-version: "['${{ github.event.inputs.python-version }}']"
# Run builds for selected Ubuntu version and all Python versions.
build-any-python:
if: ${{ (github.event.inputs.os != 'any') && (github.event.inputs.python-version == 'any') }}
uses: ./.github/workflows/makeall-linux.yaml
with:
os: "['${{ github.event.inputs.os }}']"
python-version: "['3.8', '3.9', '3.10', '3.11']"
# Run builds for selected Ubuntu and Python versions.
build:
if: ${{ (github.event.inputs.os != 'any') && (github.event.inputs.python-version != 'any') && (github.event.inputs.os != '') }}
uses: ./.github/workflows/makeall-linux.yaml
with:
os: "['${{ github.event.inputs.os }}']"
python-version: "['${{ github.event.inputs.python-version }}']"