From ae7023b2dbd258c08f7ac5802d07f7a3d1fb9bde Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Wed, 3 Aug 2022 17:10:53 +0200 Subject: [PATCH] Create the package Contributes to CURA-8831 --- .github/workflows/conan-package.yml | 37 ++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/conan-package.yml b/.github/workflows/conan-package.yml index d5c9af7c03..d7f4557b81 100644 --- a/.github/workflows/conan-package.yml +++ b/.github/workflows/conan-package.yml @@ -41,10 +41,11 @@ on: branches: - main - 'CURA-*' - - '[0-9]+.[0-9]+' + - '[1-9].[0-9]' + - '[1-9].[0-9][0-9]' tags: - - '[0-9]+.[0-9]+.[0-9]+' - - '[0-9]+.[0-9]+-beta' + - '[1-9].[0-9].[0-9]+' + - '[1-9].[0-9][0-9].[0-9]+' jobs: conan-recipe-version: @@ -52,7 +53,7 @@ jobs: with: project_name: cura - conan-package-export-linux: + conan-package-export: needs: [ conan-recipe-version ] uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@main with: @@ -61,12 +62,23 @@ jobs: runs_on: 'ubuntu-20.04' python_version: '3.10.x' conan_logging_level: 'info' - conan_export_binaries: true + secrets: inherit + + conan-package-create-linux: + if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux) }} + needs: [ conan-recipe-version, conan-package-export ] + + uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main + with: + recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} + runs_on: 'ubuntu-20.04' + python_version: '3.10.x' + conan_logging_level: 'info' secrets: inherit notify-export: if: ${{ always() }} - needs: [ conan-recipe-version, conan-package-export-linux ] + needs: [ conan-recipe-version, conan-package-export ] uses: ultimaker/cura/.github/workflows/notify.yml@main with: @@ -76,3 +88,16 @@ jobs: failure_title: "Failed to export Conan Export in ${{ github.repository }}" failure_body: "Failed to exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}" secrets: inherit + + notify-create: + if: ${{ always() && ((github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux)) }} + needs: [ conan-recipe-version, conan-package-create-linux ] + + uses: ultimaker/cura/.github/workflows/notify.yml@main + with: + success: ${{ contains(join(needs.*.result, ','), 'success') }} + success_title: "New binaries created in ${{ github.repository }}" + success_body: "Created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}" + failure_title: "Failed to create binaries in ${{ github.repository }}" + failure_body: "Failed to created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}" + secrets: inherit