diff --git a/.github/workflows/generate-matrix.yml b/.github/workflows/generate-matrix.yml index 3fe2491944..8807e8c65e 100644 --- a/.github/workflows/generate-matrix.yml +++ b/.github/workflows/generate-matrix.yml @@ -26,30 +26,7 @@ on: required: true type: string -# Generate the JSON outputs by using JQ to compact the JSON string. This -# workflow can be called and its outputs used as follows: -# ```yaml -# jobs: -# generate-matrix: -# uses: ./.github/workflows/generate-matrix.yml -# with: -# architecture: ${{ env.STRATEGY_MATRIX_ARCHITECTURE }} -# os: ${{ env.STRATEGY_MATRIX_OS }} -# build_type: ${{ env.STRATEGY_MATRIX_BUILD_TYPE }} -# cmake_args: ${{ env.STRATEGY_MATRIX_UNITY }} -# use-matrix: -# needs: generate-matrix -# strategy: -# fail-fast: false -# matrix: -# architecture: ${{ fromJson(needs.generate-matrix.outputs.architecture) }} -# os: ${{ fromJson(needs.generate-matrix.outputs.os) }} -# build_type: ${{ fromJson(needs.generate-matrix.outputs.build_type) }} -# cmake_args: ${{ fromJson(needs.generate-matrix.outputs.cmake_args) }} -# runs-on: ${{ matrix.architecture.runner }} -# container: ghcr.io/xrplf/ci/${{ matrix.os.distro }}-${{ matrix.os.release }}:${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }} -# ... -# ``` +# Generate the JSON outputs by using JQ to compact the JSON string. jobs: generate-matrix: runs-on: ${{ inputs.runner }} @@ -61,8 +38,8 @@ jobs: echo "os=$(jq -c <<< '${{ inputs.os }}')" >> "$GITHUB_OUTPUT" echo "build_type=$(jq -c <<< '${{ inputs.build_type }}')" >> "$GITHUB_OUTPUT" echo "cmake_args=$(jq -c <<< '${{ inputs.cmake_args }}')" >> "$GITHUB_OUTPUT" - outputs: - architecture: ${{ steps.generate.outputs.architecture }} - os: ${{ steps.generate.outputs.os }} - build_type: ${{ steps.generate.outputs.build_type }} - cmake_args: ${{ steps.generate.outputs.cmake_args }} + outputs: + architecture: ${{ steps.generate.outputs.architecture }} + os: ${{ steps.generate.outputs.os }} + build_type: ${{ steps.generate.outputs.build_type }} + cmake_args: ${{ steps.generate.outputs.cmake_args }}