-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from Ultimaker/CURA-10831
- Loading branch information
Showing
4 changed files
with
39 additions
and
63 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,57 +1,34 @@ | ||
--- | ||
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: | ||
- '*.xml.*' | ||
- '*.sig' | ||
- 'conanfile.py' | ||
- '.github/workflows/conan-package.yml' | ||
- '.github/workflows/requirements*.txt' | ||
branches: | ||
- main | ||
- master | ||
- 'CURA-*' | ||
- '[0-9].[0-9]*' | ||
tags: | ||
- '[1-9]+.[0-9]+.[0-9]*' | ||
- '[1-9]+.[0-9]+.[0-9]' | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- '*.xml.*' | ||
- '*.sig' | ||
- 'conanfile.py' | ||
- '.github/workflows/conan-package.yml' | ||
- '.github/workflows/requirements*.txt' | ||
branches: | ||
- main | ||
- master | ||
- 'PP-*' | ||
- 'CURA-*' | ||
- '[0-9].[0-9]*' | ||
tags: | ||
- '[0-9]+.[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: fdm_materials | ||
|
||
conan-package-export-linux: | ||
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_config_branch: 'master' | ||
conan_logging_level: 'info' | ||
conan_export_binaries: true | ||
secrets: inherit | ||
|
||
notify-export: | ||
if: ${{ always() }} | ||
needs: [ conan-recipe-version, conan-package-export-linux ] | ||
conan-recipe-version: | ||
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main | ||
with: | ||
project_name: fdm_materials | ||
|
||
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 | ||
conan-package-export-linux: | ||
needs: [ conan-recipe-version ] | ||
uses: ultimaker/cura-workflows/.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 }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
name: process-pull-request | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, reopened, edited, synchronize, review_requested, ready_for_review, assigned] | ||
pull_request_target: | ||
types: [ opened, reopened, edited, review_requested, ready_for_review, assigned ] | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | ||
with: | ||
labels: 'PR: Community Contribution :crown:' | ||
add_label: | ||
uses: ultimaker/cura-workflows/.github/workflows/process-pull-request.yml@main | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version: "5.7.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