From 915b4568f3fb074040a076dd30a9282459e066ab Mon Sep 17 00:00:00 2001 From: Bart Thomee <11445373+bthomee@users.noreply.github.com> Date: Sun, 27 Jul 2025 10:50:31 -0400 Subject: [PATCH] Use workflow_call --- .github/workflows/install-dependencies.yml | 83 +++++++++++----------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/.github/workflows/install-dependencies.yml b/.github/workflows/install-dependencies.yml index 0852f9ebed..f842af303c 100644 --- a/.github/workflows/install-dependencies.yml +++ b/.github/workflows/install-dependencies.yml @@ -53,44 +53,45 @@ defaults: shell: bash jobs: - runs-on: ${{ inputs.runner }} - container: ${{ inputs.container }} - steps: - - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - name: Check configuration - run: | - echo "Checking path" - echo ${PATH} | tr ':' '\n' - - echo "Checking environment variables." - env | sort - - name: Check versions - run: | - echo "Checking CMake version." - cmake --version - - echo "Checking compiler version." - ${CC} --version - - name: Configure Conan - uses: ./.github/actions/conan-configure - with: - conan_global_conf: ${{ inputs.conan_global_conf }} - conan_remote_name: ${{ inputs.conan_remote_name }} - conan_remote_url: ${{ inputs.conan_remote_url }} - conan_remote_username: ${{ secrets.conan_remote_username }} - conan_remote_password: ${{ secrets.conan_remote_password }} - - name: Install Conan dependencies - run: | - mkdir -p ${{ inputs.build_dir }} - cd ${{ inputs.build_dir }} - conan install \ - --output-folder . \ - --build missing \ - --options:host "&:tests=True" \ - --options:host "&:xrpld=True" \ - --settings:all build_type=${{ inputs.build_type }} \ - .. - - name: Upload Conan dependencies - shell: bash - run: conan upload '*' --confirm --check --remote ${{ inputs.conan_remote_name }} + install-dependencies: + runs-on: ${{ inputs.runner }} + container: ${{ inputs.container }} + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - name: Check configuration + run: | + echo "Checking path" + echo ${PATH} | tr ':' '\n' + + echo "Checking environment variables." + env | sort + - name: Check versions + run: | + echo "Checking CMake version." + cmake --version + + echo "Checking compiler version." + ${CC} --version + - name: Configure Conan + uses: ./.github/actions/conan-configure + with: + conan_global_conf: ${{ inputs.conan_global_conf }} + conan_remote_name: ${{ inputs.conan_remote_name }} + conan_remote_url: ${{ inputs.conan_remote_url }} + conan_remote_username: ${{ secrets.conan_remote_username }} + conan_remote_password: ${{ secrets.conan_remote_password }} + - name: Install Conan dependencies + run: | + mkdir -p ${{ inputs.build_dir }} + cd ${{ inputs.build_dir }} + conan install \ + --output-folder . \ + --build missing \ + --options:host "&:tests=True" \ + --options:host "&:xrpld=True" \ + --settings:all build_type=${{ inputs.build_type }} \ + .. + - name: Upload Conan dependencies + shell: bash + run: conan upload '*' --confirm --check --remote ${{ inputs.conan_remote_name }}