mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Create Artifactory build info
This commit is contained in:
parent
b75e047348
commit
ce8a7b6109
2 changed files with 13 additions and 0 deletions
12
.github/workflows/conan-package-create.yml
vendored
12
.github/workflows/conan-package-create.yml
vendored
|
|
@ -3,6 +3,10 @@ name: Create and Upload Conan package
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
project_name:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
recipe_id_full:
|
recipe_id_full:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -126,6 +130,9 @@ 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: Associate build information with the Conan package
|
||||||
|
run: conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }}
|
||||||
|
|
||||||
- name: Create the Packages
|
- name: Create the Packages
|
||||||
if: ${{ !inputs.create_from_source }}
|
if: ${{ !inputs.create_from_source }}
|
||||||
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update
|
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update
|
||||||
|
|
@ -151,3 +158,8 @@ jobs:
|
||||||
- name: Upload the Package(s) community
|
- name: Upload the Package(s) community
|
||||||
if: ${{ always() && inputs.conan_upload_community == true }}
|
if: ${{ always() && inputs.conan_upload_community == true }}
|
||||||
run: conan upload "*" -r cura-ce -c
|
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 }}
|
||||||
|
|
|
||||||
1
.github/workflows/conan-package.yml
vendored
1
.github/workflows/conan-package.yml
vendored
|
|
@ -81,6 +81,7 @@ 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
|
||||||
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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue