diff --git a/.github/workflows/conan-package-create.yml b/.github/workflows/conan-package-create.yml index 4af608b7ac..4f55f0cd70 100644 --- a/.github/workflows/conan-package-create.yml +++ b/.github/workflows/conan-package-create.yml @@ -3,6 +3,10 @@ name: Create and Upload Conan package on: workflow_call: inputs: + project_name: + required: true + type: string + recipe_id_full: required: true type: string @@ -126,6 +130,9 @@ jobs: if: ${{ inputs.conan_config_branch == '' }} run: conan config install https://github.com/Ultimaker/conan-config.git + - name: Associate build information with the Conan package + run: conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }} + - name: Create the Packages if: ${{ !inputs.create_from_source }} run: conan install ${{ inputs.recipe_id_full }} --build=missing --update @@ -151,3 +158,8 @@ jobs: - name: Upload the Package(s) community if: ${{ always() && inputs.conan_upload_community == true }} run: conan upload "*" -r cura-ce -c + + - name: Create and Upload the build info + run: | + conan_build_info --v2 create buildinfo.json --lockfile conan.lock --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }} + conan_build_info --v2 publish buildinfo.json --url https://ultimaker.jfrog.io/artifactory --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }} diff --git a/.github/workflows/conan-package.yml b/.github/workflows/conan-package.yml index 8a9de2e37f..9bcd9635ee 100644 --- a/.github/workflows/conan-package.yml +++ b/.github/workflows/conan-package.yml @@ -81,6 +81,7 @@ jobs: uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main with: + project_name: cura recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} runs_on: 'ubuntu-20.04' python_version: '3.10.x'