From 4d2bbd761f04b57b3226f204398a4facb4f96e9d Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Wed, 11 Dec 2024 11:37:32 +0100 Subject: [PATCH] Add workflows to output build matricies --- .github/workflows/:matrix:exasol.yml | 32 ++++++++++++++++++++++++++++ .github/workflows/:matrix:python.yml | 32 ++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/:matrix:exasol.yml create mode 100644 .github/workflows/:matrix:python.yml diff --git a/.github/workflows/:matrix:exasol.yml b/.github/workflows/:matrix:exasol.yml new file mode 100644 index 000000000..438d22909 --- /dev/null +++ b/.github/workflows/:matrix:exasol.yml @@ -0,0 +1,32 @@ +# Note: the filename has been chosen so it differentiates from the other workflow files. Generally, this file could have any regular filename. + +name: Build Matrix (All Versions) + +on: + workflow_call: + outputs: + matrix: + description: "Generates the exasol version build matrix" + value: ${{ jobs.exasol_versions.outputs.matrix }} + +jobs: + exasol_versions: + + runs-on: ubuntu-latest + + steps: + - name: SCM Checkout + uses: actions/checkout@v4 + + - name: Setup Python & Poetry Environment + uses: ./.github/actions/python-environment + + - name: Generate matrix + run: poetry run nox -s matrix:exasol + + - id: set-matrix + run: | + echo "::set-output name=matrix::$(poetry run nox -s matrix:exasol)" + + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} diff --git a/.github/workflows/:matrix:python.yml b/.github/workflows/:matrix:python.yml new file mode 100644 index 000000000..c18af8085 --- /dev/null +++ b/.github/workflows/:matrix:python.yml @@ -0,0 +1,32 @@ +# Note: the filename has been chosen so it differentiates from the other workflow files. Generally, this file could have any regular filename. + +name: Build Matrix (Python) + +on: + workflow_call: + outputs: + matrix: + description: "Generates the python version build matrix" + value: ${{ jobs.python_versions.outputs.matrix }} + +jobs: + python_versions: + + runs-on: ubuntu-latest + + steps: + - name: SCM Checkout + uses: actions/checkout@v4 + + - name: Setup Python & Poetry Environment + uses: ./.github/actions/python-environment + + - name: Generate matrix + run: poetry run nox -s matrix:python + + - id: set-matrix + run: | + echo "::set-output name=matrix::$(poetry run nox -s matrix:python)" + + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }}