From 75f5bfe970c053496f48bb278a7a8c1b7f2150c5 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 10 Dec 2024 13:40:53 +0100 Subject: [PATCH] Add CI-specific resource paths in cura_wasm profile Include conditional environment-specific paths for resource and materials directories used by the curator. These paths are set when the CI (Continuous Integration) environment variable is detected, ensuring proper resource handling during automated builds. Contribute to NP-637 --- profiles/cura_wasm.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/cura_wasm.jinja b/profiles/cura_wasm.jinja index 96a9e2f..0e9a76b 100644 --- a/profiles/cura_wasm.jinja +++ b/profiles/cura_wasm.jinja @@ -11,6 +11,10 @@ arch=wasm [conf] tools.build:skip_test=True tools.cmake.cmake_layout:build_folder_vars=['settings.os'] +{% if os.getenv('CI') == 'true' %} +user.curator:resource_path="{% os.getenv('GITHUB_WORKSPACE') %}/resources" +user.curator:fdm_materials_path="{% os.getenv('GITHUB_WORKSPACE') %}/resources" +{% endif %} [options] curaengine/*:enable_plugins=False