mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-01 07:12:01 +08:00
Prepare for merge
CURA-11622
This commit is contained in:
parent
e2487377cc
commit
41526bfe70
@ -21,9 +21,8 @@ on:
|
|||||||
- '[0-9].[0-9][0-9]*'
|
- '[0-9].[0-9][0-9]*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# FIXME: Use main once merged
|
|
||||||
conan-package:
|
conan-package:
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@CURA-11622_conan_v2
|
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@main
|
||||||
with:
|
with:
|
||||||
conan_recipe_root: "./resources/"
|
conan_recipe_root: "./resources/"
|
||||||
platform_windows: false
|
platform_windows: false
|
||||||
|
3
.github/workflows/conan-package.yml
vendored
3
.github/workflows/conan-package.yml
vendored
@ -33,7 +33,6 @@ on:
|
|||||||
- '[0-9].[0-9][0-9]*'
|
- '[0-9].[0-9][0-9]*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# FIXME: Use main once merged
|
|
||||||
conan-package:
|
conan-package:
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@CURA-11622_conan_v2
|
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
7
.github/workflows/installers.yml
vendored
7
.github/workflows/installers.yml
vendored
@ -24,12 +24,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
installers:
|
installers:
|
||||||
# FIXME: Use main once merged
|
|
||||||
name: Create installers
|
name: Create installers
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@CURA-11622_conan_v2
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@main
|
||||||
with:
|
with:
|
||||||
cura_conan_version: ${{ inputs.cura_conan_version }}
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
conan_args: ${{ inputs.conan_args }}
|
conan_args: ${{ inputs.conan_args }}
|
||||||
enterprise: ${{ inputs.enterprise == 'true' }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging == 'true' }}
|
staging: ${{ inputs.staging }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
3
.github/workflows/linux.yml
vendored
3
.github/workflows/linux.yml
vendored
@ -34,9 +34,8 @@ on:
|
|||||||
- self-hosted-Ubuntu22-X64
|
- self-hosted-Ubuntu22-X64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# FIXME: Use main once merged
|
|
||||||
linux-installer:
|
linux-installer:
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@CURA-11622_conan_v2
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@main
|
||||||
with:
|
with:
|
||||||
cura_conan_version: ${{ inputs.cura_conan_version }}
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
conan_args: ${{ inputs.conan_args }}
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
3
.github/workflows/macos.yml
vendored
3
.github/workflows/macos.yml
vendored
@ -43,9 +43,8 @@ on:
|
|||||||
- macos-12
|
- macos-12
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# FIXME: Use main once merged
|
|
||||||
macos-installer:
|
macos-installer:
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@CURA-11622_conan_v2
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@main
|
||||||
with:
|
with:
|
||||||
cura_conan_version: ${{ inputs.cura_conan_version }}
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
conan_args: ${{ inputs.conan_args }}
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
6
.github/workflows/nightly-stable.yml
vendored
6
.github/workflows/nightly-stable.yml
vendored
@ -8,10 +8,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-nightly:
|
build-nightly:
|
||||||
# FIXME: Use main once merged
|
uses: ./.github/workflows/nightly.yml
|
||||||
uses: ultimaker/cura/.github/workflows/nightly.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
# FIXME: Use stable channel once merged
|
cura_conan_version: "cura/[*]@ultimaker/stable"
|
||||||
cura_conan_version: "cura/[*]@ultimaker/cura_11622"
|
|
||||||
release_tag: "nightly"
|
release_tag: "nightly"
|
||||||
caller_workflow: "nightly-stable.yml"
|
caller_workflow: "nightly-stable.yml"
|
||||||
|
6
.github/workflows/nightly-testing.yml
vendored
6
.github/workflows/nightly-testing.yml
vendored
@ -8,10 +8,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-nightly:
|
build-nightly:
|
||||||
# FIXME: Use main once merged
|
uses: ./.github/workflows/nightly.yml
|
||||||
uses: ultimaker/cura/.github/workflows/nightly.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
# FIXME: Use testing channel once merged
|
cura_conan_version: "cura/[*]@ultimaker/testing"
|
||||||
cura_conan_version: "cura/[*]@ultimaker/cura_11622"
|
|
||||||
release_tag: "nightly-stable" # Fixed version, we reuse the same tag forever
|
release_tag: "nightly-stable" # Fixed version, we reuse the same tag forever
|
||||||
caller_workflow: "nightly-testing.yml"
|
caller_workflow: "nightly-testing.yml"
|
||||||
|
6
.github/workflows/nightly.yml
vendored
6
.github/workflows/nightly.yml
vendored
@ -19,8 +19,7 @@ jobs:
|
|||||||
create-installers:
|
create-installers:
|
||||||
name: Create installers
|
name: Create installers
|
||||||
id: create-installers
|
id: create-installers
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
cura_conan_version: ${{ inputs.cura_conan_version }}
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@ -31,8 +30,7 @@ jobs:
|
|||||||
needs: [ create-installers ]
|
needs: [ create-installers ]
|
||||||
steps:
|
steps:
|
||||||
- name: Setup the build environment
|
- name: Setup the build environment
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@main
|
||||||
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@CURA-11622_conan_v2
|
|
||||||
|
|
||||||
- name: Download installers jobs artifacts
|
- name: Download installers jobs artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
name: notify_on_print_profile_change
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
paths:
|
|
||||||
- 'resources/definitions/fdmprinter.def.json'
|
|
||||||
- 'resources/definitions/ultimaker**'
|
|
||||||
- 'resources/extruders/ultimaker**'
|
|
||||||
- 'resources/intent/ultimaker**'
|
|
||||||
- 'resources/quality/ultimaker**'
|
|
||||||
- 'resources/variants/ultimaker**'
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
paths:
|
|
||||||
- 'resources/definitions/fdmprinter.def.json'
|
|
||||||
- 'resources/definitions/ultimaker**'
|
|
||||||
- 'resources/extruders/ultimaker**'
|
|
||||||
- 'resources/intent/ultimaker**'
|
|
||||||
- 'resources/quality/ultimaker**'
|
|
||||||
- 'resources/variants/ultimaker**'
|
|
||||||
permissions: {}
|
|
||||||
jobs:
|
|
||||||
slackNotification:
|
|
||||||
name: Slack Notification
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Ultimaker Print Profile Changed
|
|
||||||
uses: rtCamp/action-slack-notify@v2
|
|
||||||
env:
|
|
||||||
SLACK_CHANNEL: profile-changes
|
|
||||||
SLACK_USERNAME: ${{ github.repository }}
|
|
||||||
SLACK_COLOR: '#00FF00'
|
|
||||||
SLACK_TITLE: Print profiles changed
|
|
||||||
MSG_MINIMAL: commit
|
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_CURA_PPM_HOOK }}
|
|
16
.github/workflows/printer-linter-format.yml
vendored
16
.github/workflows/printer-linter-format.yml
vendored
@ -15,8 +15,8 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Setup the build environment
|
||||||
uses: actions/checkout@v4
|
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@main
|
||||||
|
|
||||||
- uses: greguintow/get-diff-action@v7
|
- uses: greguintow/get-diff-action@v7
|
||||||
with:
|
with:
|
||||||
@ -24,18 +24,6 @@ jobs:
|
|||||||
resources/+(definitions|extruders)/*.def.json
|
resources/+(definitions|extruders)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: 'pip'
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- name: Format file
|
- name: Format file
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: python printer-linter/src/terminal.py --format ${{ env.GIT_DIFF_FILTERED }}
|
run: python printer-linter/src/terminal.py --format ${{ env.GIT_DIFF_FILTERED }}
|
||||||
|
18
.github/workflows/printer-linter-pr-diagnose.yml
vendored
18
.github/workflows/printer-linter-pr-diagnose.yml
vendored
@ -14,10 +14,8 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Setup the build environment
|
||||||
uses: actions/checkout@v4
|
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@main
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
|
|
||||||
- uses: greguintow/get-diff-action@v7
|
- uses: greguintow/get-diff-action@v7
|
||||||
with:
|
with:
|
||||||
@ -26,18 +24,6 @@ jobs:
|
|||||||
resources/+(extruders|definitions)/*.def.json
|
resources/+(extruders|definitions)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: "pip"
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- name: Create results directory
|
- name: Create results directory
|
||||||
run: mkdir printer-linter-result
|
run: mkdir printer-linter-result
|
||||||
|
|
||||||
|
@ -25,8 +25,7 @@ jobs:
|
|||||||
|
|
||||||
feature-freeze:
|
feature-freeze:
|
||||||
name: Process feature freeze
|
name: Process feature freeze
|
||||||
# FIXME: Use main once merged
|
uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@main
|
||||||
uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-11622_conan_v2
|
|
||||||
needs: [parse-version]
|
needs: [parse-version]
|
||||||
with:
|
with:
|
||||||
cura_version: ${{ needs.parse-version.outputs.package_version }}
|
cura_version: ${{ needs.parse-version.outputs.package_version }}
|
||||||
|
@ -32,8 +32,7 @@ jobs:
|
|||||||
|
|
||||||
freeze-packages-versions:
|
freeze-packages-versions:
|
||||||
name: Freeze packges versions
|
name: Freeze packges versions
|
||||||
# FIXME: Use main once merged
|
uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@main
|
||||||
uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-11622_conan_v2
|
|
||||||
needs: [parse-version]
|
needs: [parse-version]
|
||||||
with:
|
with:
|
||||||
cura_version: ${{ inputs.cura_version }}
|
cura_version: ${{ inputs.cura_version }}
|
||||||
@ -103,8 +102,7 @@ jobs:
|
|||||||
|
|
||||||
create-packages:
|
create-packages:
|
||||||
name: Create conan packages
|
name: Create conan packages
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-11622_conan_v2
|
|
||||||
needs: [parse-version, freeze-packages-versions]
|
needs: [parse-version, freeze-packages-versions]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -114,15 +112,14 @@ jobs:
|
|||||||
- repository: Cura
|
- repository: Cura
|
||||||
conan_recipe_root: "resources"
|
conan_recipe_root: "resources"
|
||||||
with:
|
with:
|
||||||
repository: Ultimaker/${{ matrix.repository }}
|
repository: ${{ matrix.repository }}
|
||||||
branch: ${{ needs.parse-version.outputs.branch_name }}
|
branch: ${{ needs.parse-version.outputs.branch_name }}
|
||||||
conan_recipe_root: ${{ matrix.conan_recipe_root }}
|
conan_recipe_root: ${{ matrix.conan_recipe_root }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
create-installers:
|
create-installers:
|
||||||
name: Create installers
|
name: Create installers
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installers.yml@CURA-11622_conan_v2
|
|
||||||
needs: [parse-version, create-packages]
|
needs: [parse-version, create-packages]
|
||||||
with:
|
with:
|
||||||
cura_conan_version: cura/${{ inputs.cura_version }}@ultimaker/stable
|
cura_conan_version: cura/${{ inputs.cura_version }}@ultimaker/stable
|
||||||
|
3
.github/workflows/unit-test.yml
vendored
3
.github/workflows/unit-test.yml
vendored
@ -40,7 +40,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
testing:
|
testing:
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
# FIXME: use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/unit-test.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/unit-test.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
test_use_pytest: true
|
test_use_pytest: true
|
||||||
|
3
.github/workflows/update-translation.yml
vendored
3
.github/workflows/update-translation.yml
vendored
@ -10,7 +10,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-translations:
|
update-translations:
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/update-translations.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/update-translations.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
branch: ${{ inputs.branch }}
|
branch: ${{ inputs.branch }}
|
||||||
|
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
@ -35,8 +35,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-installer:
|
windows-installer:
|
||||||
# FIXME: Use main once merged
|
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@main
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@CURA-11622_conan_v2
|
|
||||||
with:
|
with:
|
||||||
cura_conan_version: ${{ inputs.cura_conan_version }}
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
conan_args: ${{ inputs.conan_args }}
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
version: "5.10.0-alpha.0"
|
version: "5.10.0-alpha.0"
|
||||||
requirements:
|
requirements:
|
||||||
- "cura_resources/5.10.0-alpha.0@ultimaker/cura_11622"
|
- "cura_resources/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "uranium/5.10.0-alpha.0@ultimaker/cura_11622"
|
- "uranium/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "curaengine/5.10.0-alpha.0@ultimaker/cura_11622"
|
- "curaengine/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "cura_binary_data/5.10.0-alpha.0@ultimaker/cura_11622"
|
- "cura_binary_data/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "fdm_materials/5.10.0-alpha.0@ultimaker/cura_11622"
|
- "fdm_materials/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "dulcificum/0.2.1@ultimaker/cura_11622"
|
- "dulcificum/0.2.1@ultimaker/stable"
|
||||||
- "pysavitar/5.4.0-alpha.0@ultimaker/cura_11622"
|
- "pysavitar/5.4.0-alpha.0@ultimaker/stable"
|
||||||
- "pynest2d/5.4.0-alpha.0@ultimaker/cura_11622"
|
- "pynest2d/5.4.0-alpha.0@ultimaker/stable"
|
||||||
requirements_internal:
|
requirements_internal:
|
||||||
- "fdm_materials/5.8.1"
|
- "fdm_materials/5.8.1"
|
||||||
- "cura_private_data/5.10.0-alpha.0@internal/cura_11622"
|
- "cura_private_data/5.10.0-alpha.0@internal/testing"
|
||||||
requirements_enterprise:
|
requirements_enterprise:
|
||||||
- "native_cad_plugin/2.0.0"
|
- "native_cad_plugin/2.0.0"
|
||||||
urls:
|
urls:
|
||||||
|
@ -36,10 +36,6 @@ class CuraResource(ConanFile):
|
|||||||
copy(self, pattern="*", src=os.path.join(self.recipe_folder, shared_resources),
|
copy(self, pattern="*", src=os.path.join(self.recipe_folder, shared_resources),
|
||||||
dst=os.path.join(self.export_sources_folder, shared_resources))
|
dst=os.path.join(self.export_sources_folder, shared_resources))
|
||||||
|
|
||||||
def validate(self):
|
|
||||||
if Version(self.version) <= Version("4"):
|
|
||||||
raise ConanInvalidConfiguration("Only versions 5+ are support")
|
|
||||||
|
|
||||||
def layout(self):
|
def layout(self):
|
||||||
self.cpp.source.resdirs = self._shared_resources
|
self.cpp.source.resdirs = self._shared_resources
|
||||||
self.cpp.package.resdirs = [f"res/{res}" for res in self._shared_resources]
|
self.cpp.package.resdirs = [f"res/{res}" for res in self._shared_resources]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user