mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:19:04 +08:00
Fix buildinfo.json generation
This commit is contained in:
parent
c9fc171776
commit
9d690da9d5
14
.github/workflows/conan-package-create.yml
vendored
14
.github/workflows/conan-package-create.yml
vendored
@ -11,6 +11,14 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: number
|
type: number
|
||||||
|
|
||||||
|
recipe_user:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
recipe_channel:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
recipe_id_full:
|
recipe_id_full:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -140,12 +148,12 @@ jobs:
|
|||||||
if: ${{ inputs.conan_config_branch == '' }}
|
if: ${{ inputs.conan_config_branch == '' }}
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
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 }}
|
if: ${{ !inputs.create_from_source }}
|
||||||
run: |
|
run: |
|
||||||
conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }}000${{ inputs.build_id }}
|
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 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
|
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 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 publish buildinfo.json --url https://ultimaker.jfrog.io/artifactory --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }}
|
||||||
conan_build_info --v2 stop
|
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
|
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main
|
||||||
with:
|
with:
|
||||||
project_name: cura
|
project_name: ${{ needs.conan-recipe-version.outputs.recipe_projectname }}
|
||||||
build_id: 1
|
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 }}
|
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
|
||||||
runs_on: 'ubuntu-20.04'
|
runs_on: 'ubuntu-20.04'
|
||||||
python_version: '3.10.x'
|
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"
|
description: "The conan channel"
|
||||||
value: ${{ jobs.get-semver.outputs.channel }}
|
value: ${{ jobs.get-semver.outputs.channel }}
|
||||||
|
|
||||||
|
recipe_projectname:
|
||||||
|
description: "The conan projectname"
|
||||||
|
value: ${{ inputs.project_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-semver:
|
get-semver:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user