Use Conan v2 #107
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 | ||
on: | ||
push: | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'test_package/**' | ||
- 'tests/**' | ||
- 'cmake/**' | ||
- 'conanfile.py' | ||
- 'conandata.yml' | ||
- 'CMakeLists.txt' | ||
- 'requirements.txt' | ||
- '.github/workflows/conan-package.yml' | ||
- '.github/workflows/requirements*' | ||
branches: | ||
- main | ||
- 'CURA-*' | ||
- 'PP-*' | ||
- 'NP-*' | ||
- '[0-9].[0-9]*' | ||
- '[0-9].[0-9][0-9]*' | ||
jobs: | ||
# 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: nest2d | ||
# 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 | ||
Check failure on line 74 in .github/workflows/conan-package.yml GitHub Actions / .github/workflows/conan-package.ymlInvalid workflow file
|
||
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 |