Skip to content

Commit 4d2bbd7

Browse files
committed
Add workflows to output build matricies
1 parent 3874fca commit 4d2bbd7

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Note: the filename has been chosen so it differentiates from the other workflow files. Generally, this file could have any regular filename.
2+
3+
name: Build Matrix (All Versions)
4+
5+
on:
6+
workflow_call:
7+
outputs:
8+
matrix:
9+
description: "Generates the exasol version build matrix"
10+
value: ${{ jobs.exasol_versions.outputs.matrix }}
11+
12+
jobs:
13+
exasol_versions:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: SCM Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python & Poetry Environment
22+
uses: ./.github/actions/python-environment
23+
24+
- name: Generate matrix
25+
run: poetry run nox -s matrix:exasol
26+
27+
- id: set-matrix
28+
run: |
29+
echo "::set-output name=matrix::$(poetry run nox -s matrix:exasol)"
30+
31+
outputs:
32+
matrix: ${{ steps.set-matrix.outputs.matrix }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Note: the filename has been chosen so it differentiates from the other workflow files. Generally, this file could have any regular filename.
2+
3+
name: Build Matrix (Python)
4+
5+
on:
6+
workflow_call:
7+
outputs:
8+
matrix:
9+
description: "Generates the python version build matrix"
10+
value: ${{ jobs.python_versions.outputs.matrix }}
11+
12+
jobs:
13+
python_versions:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: SCM Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python & Poetry Environment
22+
uses: ./.github/actions/python-environment
23+
24+
- name: Generate matrix
25+
run: poetry run nox -s matrix:python
26+
27+
- id: set-matrix
28+
run: |
29+
echo "::set-output name=matrix::$(poetry run nox -s matrix:python)"
30+
31+
outputs:
32+
matrix: ${{ steps.set-matrix.outputs.matrix }}

0 commit comments

Comments
 (0)