Fix buildinfo.json generation

This commit is contained in:
jspijker 2022-11-13 10:29:25 +01:00
parent c9fc171776
commit 9d690da9d5
3 changed files with 18 additions and 4 deletions

View file

@ -11,6 +11,14 @@ on:
required: true
type: number
recipe_user:
required: true
type: string
recipe_channel:
required: true
type: string
recipe_id_full:
required: true
type: string
@ -140,12 +148,12 @@ jobs:
if: ${{ inputs.conan_config_branch == '' }}
run: conan config install https://github.com/Ultimaker/conan-config.git
- name: Create the Packages
- name: Create the Packages and the buildinfo.json
if: ${{ !inputs.create_from_source }}
run: |
conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }}000${{ inputs.build_id }}
conan lock create --reference ${{ inputs.recipe_id_full }} --build=missing --update
conan install ${{ inputs.recipe_id_full }} --build=missing --update --lockfile=conan.lock
conan lock create --reference ${{ inputs.recipe_id_full }} --user=${{ inputs.recipe_user }} --channel=${{ inputs.recipe_channel }} --lockfile-out=conan.lock
conan install ${{ inputs.recipe_id_full }} --build=missing --update --lockfile=conan.lock --lockfile-out=conan.lock
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 }}
conan_build_info --v2 stop

View file

@ -81,8 +81,10 @@ jobs:
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main
with:
project_name: cura
project_name: ${{ needs.conan-recipe-version.outputs.recipe_projectname }}
build_id: 1
recipe_user: ${{ needs.conan-recipe-version.outputs.recipe_user }}
recipe_channel: ${{ needs.conan-recipe-version.outputs.recipe_channel }}
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
runs_on: 'ubuntu-20.04'
python_version: '3.10.x'

View file

@ -37,6 +37,10 @@ on:
description: "The conan channel"
value: ${{ jobs.get-semver.outputs.channel }}
recipe_projectname:
description: "The conan projectname"
value: ${{ inputs.project_name }}
jobs:
get-semver: