mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Re-enable installing dependencies and building+testing
This commit is contained in:
93
.github/workflows/build-debian.yml
vendored
93
.github/workflows/build-debian.yml
vendored
@@ -124,9 +124,10 @@ env:
|
|||||||
]
|
]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Expose environment variables used by other jobs. This is a workaround, as
|
# Generate the strategy matrix and expose environment variables to be used by
|
||||||
# environment variables cannot be passed as inputs to reusable workflows. They
|
# following jobs. Exposing env vars this way is needed as they cannot be
|
||||||
# can, however, be passed as inputs to actions.
|
# directly passed as inputs to reusable workflows (although they can be passed
|
||||||
|
# as inputs to actions).
|
||||||
generate-outputs:
|
generate-outputs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -144,11 +145,30 @@ jobs:
|
|||||||
strategy_matrix_build_type: ${{ steps.generate.outputs.strategy_matrix_build_type }}
|
strategy_matrix_build_type: ${{ steps.generate.outputs.strategy_matrix_build_type }}
|
||||||
strategy_matrix_cmake_args: ${{ steps.generate.outputs.strategy_matrix_cmake_args }}
|
strategy_matrix_cmake_args: ${{ steps.generate.outputs.strategy_matrix_cmake_args }}
|
||||||
|
|
||||||
# Debug outputs
|
# Install and cache the dependencies using various configurations.
|
||||||
debug-outputs:
|
install-dependencies:
|
||||||
needs:
|
needs:
|
||||||
- generate-outputs
|
- generate-outputs
|
||||||
runs-on: ubuntu-latest
|
uses: ./.github/workflows/install-dependencies.yml
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
architecture: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_architecture) }}
|
||||||
|
os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
||||||
|
build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
||||||
|
with:
|
||||||
|
build_dir: ${{ inputs.build_dir }}
|
||||||
|
build_type: ${{ matrix.build_type }}
|
||||||
|
conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
||||||
|
container: ghcr.io/xrplf/ci/${{ matrix.os.distro }}-${{ matrix.os.release }}:${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
|
||||||
|
runner: ${{ matrix.architecture.runner }}
|
||||||
|
|
||||||
|
# Build and test the binary using various configurations.
|
||||||
|
build-and-test:
|
||||||
|
needs:
|
||||||
|
- generate-outputs
|
||||||
|
- install-dependencies
|
||||||
|
uses: ./.github/workflows/build-nix.yml
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -156,56 +176,11 @@ jobs:
|
|||||||
os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
||||||
build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
||||||
cmake_args: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_cmake_args) }}
|
cmake_args: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_cmake_args) }}
|
||||||
steps:
|
with:
|
||||||
- name: Debug outputs
|
build_dir: ${{ inputs.build_dir }}
|
||||||
run: |
|
build_type: ${{ matrix.build_type }}
|
||||||
echo "architecture: ${{ needs.generate-outputs.outputs.strategy_matrix_architecture }}"
|
cmake_args: ${{ matrix.cmake_args }}
|
||||||
echo "os: ${{ needs.generate-outputs.outputs.strategy_matrix_os }}"
|
cmake_generator: "Ninja"
|
||||||
echo "build_type: ${{ needs.generate-outputs.outputs.strategy_matrix_build_type }}"
|
conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
||||||
echo "cmake_args: ${{ needs.generate-outputs.outputs.strategy_matrix_cmake_args }}"
|
container: ghcr.io/xrplf/ci/${{ matrix.os.distro }}-${{ matrix.os.release }}:${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
|
||||||
echo "Platform: ${{ matrix.architecture.platform }}"
|
runner: ${{ matrix.architecture.runner }}
|
||||||
echo "Runner: ${{ matrix.architecture.runner }}"
|
|
||||||
echo "OS: ${{ matrix.os.distro }}-${{ matrix.os.release }}"
|
|
||||||
echo "Compiler: ${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}"
|
|
||||||
echo "Build Type: ${{ matrix.build_type }}"
|
|
||||||
echo "CMake Args: ${{ matrix.cmake_args }}"
|
|
||||||
|
|
||||||
# # Install and cache the dependencies using various configurations.
|
|
||||||
# install-dependencies:
|
|
||||||
# needs:
|
|
||||||
# - generate-outputs
|
|
||||||
# uses: ./.github/workflows/install-dependencies.yml
|
|
||||||
# strategy:
|
|
||||||
# fail-fast: false
|
|
||||||
# matrix:
|
|
||||||
# architecture: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_architecture) }}
|
|
||||||
# os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
|
||||||
# build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
|
||||||
# with:
|
|
||||||
# build_dir: ${{ inputs.build_dir }}
|
|
||||||
# build_type: ${{ strategy.matrix.build_type }}
|
|
||||||
# conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
|
||||||
# container: ghcr.io/xrplf/ci/${{ strategy.matrix.os.distro }}-${{ strategy.matrix.os.release }}:${{ strategy.matrix.os.compiler_name }}-${{ strategy.matrix.os.compiler_version }}
|
|
||||||
# runner: ${{ strategy.matrix.architecture.runner }}
|
|
||||||
#
|
|
||||||
# # Build and test the binary using various configurations.
|
|
||||||
# build-and-test:
|
|
||||||
# needs:
|
|
||||||
# - generate-outputs
|
|
||||||
# - install-dependencies
|
|
||||||
# uses: ./.github/workflows/build-nix.yml
|
|
||||||
# strategy:
|
|
||||||
# fail-fast: false
|
|
||||||
# matrix:
|
|
||||||
# architecture: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_architecture) }}
|
|
||||||
# os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
|
||||||
# build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
|
||||||
# cmake_args: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_cmake_args) }}
|
|
||||||
# with:
|
|
||||||
# build_dir: ${{ inputs.build_dir }}
|
|
||||||
# build_type: ${{ strategy.matrix.build_type }}
|
|
||||||
# cmake_args: ${{ strategy.matrix.cmake_args }}
|
|
||||||
# cmake_generator: "Ninja"
|
|
||||||
# conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
|
||||||
# container: ghcr.io/xrplf/ci/${{ strategy.matrix.os.distro }}-${{ strategy.matrix.os.release }}:${{ strategy.matrix.os.compiler_name }}-${{ strategy.matrix.os.compiler_version }}
|
|
||||||
# runner: ${{ strategy.matrix.architecture.runner }}
|
|
||||||
|
|||||||
104
.github/workflows/build-rhel.yml
vendored
104
.github/workflows/build-rhel.yml
vendored
@@ -92,57 +92,63 @@ env:
|
|||||||
]
|
]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Expose environment variables used by other jobs. This is a workaround, as
|
# Generate the strategy matrix and expose environment variables to be used by
|
||||||
# environment variables cannot be passed as inputs to reusable workflows. They
|
# following jobs. Exposing env vars this way is needed as they cannot be
|
||||||
# can, however, be passed as inputs to actions.
|
# directly passed as inputs to reusable workflows (although they can be passed
|
||||||
expose-env:
|
# as inputs to actions).
|
||||||
|
generate-outputs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Expose environment variables
|
- name: Generate outputs
|
||||||
run: echo ""
|
id: generate
|
||||||
|
run: |
|
||||||
|
echo "strategy_matrix_architecture=$(jq -c <<< '${{ env.STRATEGY_MATRIX_ARCHITECTURE }}')" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "strategy_matrix_os=$(jq -c <<< '${{ env.STRATEGY_MATRIX_OS }}')" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "strategy_matrix_build_type=$(jq -c <<< '${{ env.STRATEGY_MATRIX_BUILD_TYPE }}')" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "strategy_matrix_cmake_args=$(jq -c <<< '${{ env.STRATEGY_MATRIX_CMAKE_ARGS }}')" >> "$GITHUB_OUTPUT"
|
||||||
outputs:
|
outputs:
|
||||||
conan_global_conf: ${{ env.CONAN_GLOBAL_CONF }}
|
conan_global_conf: ${{ env.CONAN_GLOBAL_CONF }}
|
||||||
strategy_matrix_architecture: ${{ env.STRATEGY_MATRIX_ARCHITECTURE }}
|
strategy_matrix_architecture: ${{ steps.generate.outputs.strategy_matrix_architecture }}
|
||||||
strategy_matrix_os: ${{ env.STRATEGY_MATRIX_OS }}
|
strategy_matrix_os: ${{ steps.generate.outputs.strategy_matrix_os }}
|
||||||
strategy_matrix_build_type: ${{ env.STRATEGY_MATRIX_BUILD_TYPE }}
|
strategy_matrix_build_type: ${{ steps.generate.outputs.strategy_matrix_build_type }}
|
||||||
strategy_matrix_cmake_args: ${{ env.STRATEGY_MATRIX_CMAKE_ARGS }}
|
strategy_matrix_cmake_args: ${{ steps.generate.outputs.strategy_matrix_cmake_args }}
|
||||||
|
|
||||||
# # Install and cache the dependencies using various configurations.
|
# Install and cache the dependencies using various configurations.
|
||||||
# install-dependencies:
|
install-dependencies:
|
||||||
# needs:
|
needs:
|
||||||
# - expose-env
|
- generate-outputs
|
||||||
# uses: ./.github/workflows/install-dependencies.yml
|
uses: ./.github/workflows/install-dependencies.yml
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# architecture: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_architecture) }}
|
architecture: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_architecture) }}
|
||||||
# os: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_os) }}
|
os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
||||||
# build_type: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_build_type) }}
|
build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
||||||
# with:
|
with:
|
||||||
# build_dir: ${{ inputs.build_dir }}
|
build_dir: ${{ inputs.build_dir }}
|
||||||
# build_type: ${{ strategy.matrix.build_type }}
|
build_type: ${{ matrix.build_type }}
|
||||||
# conan_global_conf: ${{ needs.expose-env.outputs.conan_global_conf }}
|
conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
||||||
# container: ghcr.io/xrplf/ci/${{ strategy.matrix.os.distro }}-${{ strategy.matrix.os.release }}:${{ strategy.matrix.os.compiler_name }}-${{ strategy.matrix.os.compiler_version }}
|
container: ghcr.io/xrplf/ci/${{ matrix.os.distro }}-${{ matrix.os.release }}:${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
|
||||||
# runner: ${{ strategy.matrix.architecture.runner }}
|
runner: ${{ matrix.architecture.runner }}
|
||||||
#
|
|
||||||
# # Build and test the binary using various configurations.
|
# Build and test the binary using various configurations.
|
||||||
# build-and-test:
|
build-and-test:
|
||||||
# needs:
|
needs:
|
||||||
# - expose-env
|
- generate-outputs
|
||||||
# - install-dependencies
|
- install-dependencies
|
||||||
# uses: ./.github/workflows/build-nix.yml
|
uses: ./.github/workflows/build-nix.yml
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# architecture: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_architecture) }}
|
architecture: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_architecture) }}
|
||||||
# os: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_os) }}
|
os: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_os) }}
|
||||||
# build_type: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_build_type) }}
|
build_type: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_build_type) }}
|
||||||
# cmake_args: ${{ fromJson(needs.expose-env.outputs.strategy_matrix_cmake_args) }}
|
cmake_args: ${{ fromJson(needs.generate-outputs.outputs.strategy_matrix_cmake_args) }}
|
||||||
# with:
|
with:
|
||||||
# build_dir: ${{ inputs.build_dir }}
|
build_dir: ${{ inputs.build_dir }}
|
||||||
# build_type: ${{ strategy.matrix.build_type }}
|
build_type: ${{ matrix.build_type }}
|
||||||
# cmake_args: ${{ strategy.matrix.cmake_args }}
|
cmake_args: ${{ matrix.cmake_args }}
|
||||||
# cmake_generator: "Ninja"
|
cmake_generator: "Ninja"
|
||||||
# conan_global_conf: ${{ needs.expose-env.outputs.conan_global_conf }}
|
conan_global_conf: ${{ needs.generate-outputs.outputs.conan_global_conf }}
|
||||||
# container: ghcr.io/xrplf/ci/${{ strategy.matrix.os.distro }}-${{ strategy.matrix.os.release }}:${{ strategy.matrix.os.compiler_name }}-${{ strategy.matrix.os.compiler_version }}
|
container: ghcr.io/xrplf/ci/${{ matrix.os.distro }}-${{ matrix.os.release }}:${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
|
||||||
# runner: ${{ strategy.matrix.architecture.runner }}
|
runner: ${{ matrix.architecture.runner }}
|
||||||
|
|||||||
Reference in New Issue
Block a user