Use workflow_call

This commit is contained in:
Bart Thomee
2025-07-27 10:50:31 -04:00
parent 4e7480125f
commit 915b4568f3

View File

@@ -53,44 +53,45 @@ defaults:
shell: bash shell: bash
jobs: jobs:
runs-on: ${{ inputs.runner }} install-dependencies:
container: ${{ inputs.container }} runs-on: ${{ inputs.runner }}
steps: container: ${{ inputs.container }}
- name: Checkout repository steps:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Checkout repository
- name: Check configuration uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
run: | - name: Check configuration
echo "Checking path" run: |
echo ${PATH} | tr ':' '\n' echo "Checking path"
echo ${PATH} | tr ':' '\n'
echo "Checking environment variables." echo "Checking environment variables."
env | sort env | sort
- name: Check versions - name: Check versions
run: | run: |
echo "Checking CMake version." echo "Checking CMake version."
cmake --version cmake --version
echo "Checking compiler version." echo "Checking compiler version."
${CC} --version ${CC} --version
- name: Configure Conan - name: Configure Conan
uses: ./.github/actions/conan-configure uses: ./.github/actions/conan-configure
with: with:
conan_global_conf: ${{ inputs.conan_global_conf }} conan_global_conf: ${{ inputs.conan_global_conf }}
conan_remote_name: ${{ inputs.conan_remote_name }} conan_remote_name: ${{ inputs.conan_remote_name }}
conan_remote_url: ${{ inputs.conan_remote_url }} conan_remote_url: ${{ inputs.conan_remote_url }}
conan_remote_username: ${{ secrets.conan_remote_username }} conan_remote_username: ${{ secrets.conan_remote_username }}
conan_remote_password: ${{ secrets.conan_remote_password }} conan_remote_password: ${{ secrets.conan_remote_password }}
- name: Install Conan dependencies - name: Install Conan dependencies
run: | run: |
mkdir -p ${{ inputs.build_dir }} mkdir -p ${{ inputs.build_dir }}
cd ${{ inputs.build_dir }} cd ${{ inputs.build_dir }}
conan install \ conan install \
--output-folder . \ --output-folder . \
--build missing \ --build missing \
--options:host "&:tests=True" \ --options:host "&:tests=True" \
--options:host "&:xrpld=True" \ --options:host "&:xrpld=True" \
--settings:all build_type=${{ inputs.build_type }} \ --settings:all build_type=${{ inputs.build_type }} \
.. ..
- name: Upload Conan dependencies - name: Upload Conan dependencies
shell: bash shell: bash
run: conan upload '*' --confirm --check --remote ${{ inputs.conan_remote_name }} run: conan upload '*' --confirm --check --remote ${{ inputs.conan_remote_name }}