Prepare for merge

CURA-11622
This commit is contained in:
Erwan MATHIEU 2024-12-04 15:01:15 +01:00
parent e2487377cc
commit 41526bfe70
18 changed files with 34 additions and 118 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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:

View File

@ -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]