-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
125 additions
and
176 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,158 +1,78 @@ | ||
--- | ||
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: | ||
inputs: | ||
# FIXME: Not yet implemented | ||
conan_id: | ||
required: false | ||
type: string | ||
description: 'The full conan package ID, e.g. "libnest2d/1.2.3@ultimaker/stable"' | ||
create_latest_alias: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: 'Create latest alias' | ||
create_binaries_windows: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: 'create binaries Windows' | ||
create_binaries_linux: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: 'create binaries Linux' | ||
create_binaries_macos: | ||
required: true | ||
default: false | ||
type: boolean | ||
description: 'create binaries Macos' | ||
|
||
push: | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'test_package/**' | ||
- 'tests/**' | ||
- 'cmake/**' | ||
- 'conanfile.py' | ||
- 'conandata.yml' | ||
- 'CMakeLists.txt' | ||
- '.github/workflows/conan-package.yml' | ||
- '.github/workflows/requirements*' | ||
branches: | ||
- main | ||
- master | ||
- 'CURA-*' | ||
- '[0-9].[0-9]' | ||
- '[0-9].[0-9][0-9]' | ||
tags: | ||
- '[0-9].[0-9].[0-9]*' | ||
- '[0-9].[0-9][0-9].[0-9]*' | ||
push: | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'test_package/**' | ||
- 'tests/**' | ||
- 'conanfile.py' | ||
- 'conandata.yml' | ||
- 'CMakeLists.txt' | ||
- '.github/workflows/conan-package.yml' | ||
- '.github/workflows/requirements*' | ||
branches: | ||
- main | ||
- 'CURA-*' | ||
- 'PP-*' | ||
- '[0-9].[0-9]*' | ||
- '[0-9].[0-9][0-9]*' | ||
|
||
jobs: | ||
conan-recipe-version: | ||
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main | ||
with: | ||
project_name: savitar | ||
|
||
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-20.04' | ||
python_version: '3.10.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' )) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_windows) }} | ||
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.10.x' | ||
conan_config_branch: '' | ||
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')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_macos) }} | ||
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.10.x' | ||
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')) || (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 }} | ||
project_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
build_id: 2 | ||
runs_on: 'ubuntu-22.04' | ||
python_version: '3.10.x' | ||
conan_logging_level: 'info' | ||
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 }} | ||
project_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
build_id: 1 | ||
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 ] | ||
|
||
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 | ||
|
||
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-macos, conan-package-create-windows, conan-package-create-linux, conan-package-create-linux-modern ] | ||
|
||
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 | ||
# FIXME: Use main once merged | ||
conan-recipe-version: | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@CURA-11622_conan_v2 | ||
with: | ||
project_name: savitar | ||
|
||
# FIXME: Use main once merged | ||
conan-package-export: | ||
needs: [ conan-recipe-version ] | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-export.yml@CURA-11622_conan_v2 | ||
with: | ||
recipe_id_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
recipe_id_version: ${{ needs.conan-recipe-version.outputs.recipe_semver_full }} | ||
recipe_id_user: ${{ needs.conan-recipe-version.outputs.user }} | ||
recipe_id_channel: ${{ needs.conan-recipe-version.outputs.channel }} | ||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | ||
secrets: inherit | ||
|
||
# FIXME: Use main once merged | ||
conan-package-create-macos: | ||
needs: [ conan-recipe-version, conan-package-export ] | ||
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-macos.yml@CURA-11622_conan_v2 | ||
with: | ||
recipe_id_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
recipe_id_version: ${{ needs.conan-recipe-version.outputs.recipe_semver_full }} | ||
recipe_id_user: ${{ needs.conan-recipe-version.outputs.user }} | ||
recipe_id_channel: ${{ needs.conan-recipe-version.outputs.channel }} | ||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | ||
secrets: inherit | ||
|
||
# FIXME: Use main once merged | ||
conan-package-create-windows: | ||
needs: [ conan-recipe-version, conan-package-export ] | ||
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-windows.yml@CURA-11622_conan_v2 | ||
with: | ||
recipe_id_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
recipe_id_version: ${{ needs.conan-recipe-version.outputs.recipe_semver_full }} | ||
recipe_id_user: ${{ needs.conan-recipe-version.outputs.user }} | ||
recipe_id_channel: ${{ needs.conan-recipe-version.outputs.channel }} | ||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | ||
secrets: inherit | ||
|
||
# FIXME: Use main once merged | ||
conan-package-create-linux: | ||
needs: [ conan-recipe-version, conan-package-export ] | ||
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }} | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-linux.yml@CURA-11622_conan_v2 | ||
with: | ||
recipe_id_name: ${{ needs.conan-recipe-version.outputs.project_name }} | ||
recipe_id_version: ${{ needs.conan-recipe-version.outputs.recipe_semver_full }} | ||
recipe_id_user: ${{ needs.conan-recipe-version.outputs.user }} | ||
recipe_id_channel: ${{ needs.conan-recipe-version.outputs.channel }} | ||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }} | ||
secrets: inherit |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version: "5.4.0-alpha.0" |
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
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
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