mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Fix buildinfo.json generation
This commit is contained in:
parent
c9fc171776
commit
9d690da9d5
3 changed files with 18 additions and 4 deletions
14
.github/workflows/conan-package-create.yml
vendored
14
.github/workflows/conan-package-create.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/conan-package.yml
vendored
4
.github/workflows/conan-package.yml
vendored
|
@ -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'
|
||||
|
|
4
.github/workflows/conan-recipe-version.yml
vendored
4
.github/workflows/conan-recipe-version.yml
vendored
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue