From 0676dea78907765a1c9e2b93f613c7e97784bbec Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Wed, 20 Jul 2022 16:24:13 +0200 Subject: [PATCH] allow creation from source Contributes to CURA-9430 --- .github/workflows/conan-package-create.yml | 14 ++++++++++++++ .github/workflows/conan-recipe-export.yml | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conan-package-create.yml b/.github/workflows/conan-package-create.yml index 75f1bb1f3e..2d455a0f31 100644 --- a/.github/workflows/conan-package-create.yml +++ b/.github/workflows/conan-package-create.yml @@ -7,6 +7,10 @@ on: required: true type: string + recipe_id_latest: + required: false + type: string + runs_on: required: true type: string @@ -118,6 +122,16 @@ jobs: if: ${{ inputs.create_from_source }} run: conan install . ${{ inputs.recipe_id_full }} --build=missing --update + - name: Remove the latest alias + if: ${{ inputs.create_from_source && inputs.recipe_id_latest != '' && runner.os == 'Linux' }} + run: | + conan remove ${{ inputs.recipe_id_latest }} -r cura -f || true + conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f || true + + - name: Create the latest alias + if: ${{ inputs.create_from_source && inputs.recipe_id_latest != '' && always() }} + run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }} + - name: Upload the Package(s) if: always() run: conan upload "*" -r cura --all -c diff --git a/.github/workflows/conan-recipe-export.yml b/.github/workflows/conan-recipe-export.yml index 96eb57b753..75e4682b2b 100644 --- a/.github/workflows/conan-recipe-export.yml +++ b/.github/workflows/conan-recipe-export.yml @@ -11,10 +11,6 @@ on: required: false type: string - recipe_id_pr: - required: false - type: string - runs_on: required: true type: string