Add new slot for gcode dialects #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: conan-package | |
# Exports the recipe, sources and binaries for Mac, Windows and Linux and upload these to the server such that these can | |
# be used downstream. | |
# | |
# It should run on pushes against main or CURA-* branches, but it will only create the binaries for main and release branches | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**/*.proto' | |
- 'conanfile.py' | |
- 'CMakelists.txt' | |
- '.github/workflows/conan-package.yml' | |
- '.github/workflows/requirements*.txt' | |
jobs: | |
conan-recipe-version: | |
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main | |
with: | |
project_name: curaengine_grpc_definitions | |
conan-package-export: | |
needs: [ conan-recipe-version ] | |
uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@main | |
with: | |
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | |
recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} | |
runs_on: 'ubuntu-22.04' | |
python_version: '3.11.x' | |
conan_logging_level: 'info' | |
secrets: inherit | |
conan-package-create-macos: | |
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | |
needs: [ conan-recipe-version, conan-package-export ] | |
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main | |
with: | |
project_name: ${{ needs.conan-recipe-version.outputs.project_name }} | |
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | |
build_id: 3 | |
runs_on: 'macos-11' | |
python_version: '3.11.x' | |
conan_logging_level: 'info' | |
secrets: inherit | |
conan-package-create-windows: | |
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | |
needs: [ conan-recipe-version, conan-package-export ] | |
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main | |
with: | |
project_name: ${{ needs.conan-recipe-version.outputs.project_name }} | |
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | |
build_id: 4 | |
runs_on: 'windows-2022' | |
python_version: '3.11.x' | |
conan_config_branch: '' | |
conan_logging_level: 'info' | |
secrets: inherit | |
conan-package-create-linux-modern: | |
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | |
needs: [ conan-recipe-version, conan-package-export ] | |
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main | |
with: | |
project_name: ${{ needs.conan-recipe-version.outputs.project_name }} | |
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | |
build_id: 2 | |
runs_on: 'ubuntu-22.04' | |
python_version: '3.11.x' | |
conan_logging_level: 'info' | |
secrets: inherit | |
notify-export: | |
if: ${{ always() && (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | |
needs: [ conan-recipe-version, conan-package-create-macos, conan-package-create-windows, conan-package-create-linux-modern ] | |
uses: ultimaker/cura/.github/workflows/notify.yml@main | |
with: | |
success: ${{ contains(join(needs.*.result, ','), 'success') }} | |
success_title: "New Conan recipe exported in ${{ github.repository }}" | |
success_body: "Exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}" | |
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 |