Skip to content

Commit d30de99

Browse files
committed
Merge remote-tracking branch 'origin/CURA-11966_reduce-speed-on-overhang' into CURA-12352_different-minimum-layer-time-for-layers-that-contain-overhangs
2 parents 4379cbf + 5720be8 commit d30de99

File tree

11 files changed

+110
-237
lines changed

11 files changed

+110
-237
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
benchmark:
3838
uses: ultimaker/cura-workflows/.github/workflows/benchmark.yml@main
3939
with:
40-
conan_extra_args: "-o \"curaengine/*:enable_benchmarks=True\""
41-
benchmark_cmd: "./build/Release/benchmark/benchmarks --benchmark_format=json --benchmark_out=benchmark_result.json"
40+
conan_extra_args: "-c tools.build:skip_test=False -o \"curaengine/*:enable_benchmarks=True\""
41+
benchmark_cmd: "benchmark/benchmarks --benchmark_format=json --benchmark_out=benchmark_result.json"
4242
name: "C++ Benchmark"
43-
output_file_path: "build/Release/benchmark_result.json"
43+
output_file_path: "benchmark_result.json"
4444
data_dir: "dev/bench"
4545
tool: "googlecpp"
4646
alert_threshold: "150%"

.github/workflows/gcodeanalyzer.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,13 @@ permissions:
2424
contents: write
2525
deployments: write
2626

27-
# TODO: Make cura-workflows/benchmark.yml generic enough to fit the gcodeanalyzer benchmark
2827

2928
jobs:
3029
check_actor:
3130
uses: ultimaker/cura-workflows/.github/workflows/check-actor.yml@main
3231
secrets: inherit
3332

34-
conan-recipe-version:
35-
needs: [ check_actor ]
36-
if: ${{ needs.check_actor.outputs.proceed == 'true' }}
37-
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
38-
3933
gcodeanalyzer:
40-
needs: [ conan-recipe-version ]
4134
name: Run GCodeAnalyzer on the engine
4235
runs-on: ubuntu-latest
4336
steps:
@@ -64,17 +57,19 @@ jobs:
6457
fetch-depth: 1
6558
token: ${{ secrets.GITHUB_TOKEN }}
6659

67-
- name: Install dependencies
68-
run: conan install . ${{ needs.conan-recipe-version.outputs.version_full }} -s "*:build_type=Release" --build=missing --update -g VirtualRunEnv -c tools.build:skip_test=True -o with_cura_resources=True
69-
70-
- name: Build CuraEngine and tests
60+
- name: Install Python requirements
7161
run: |
72-
source build/Release/generators/conanbuild.sh
73-
cmake --preset release
74-
cmake --build --preset release
62+
pip install pandas
63+
pip install git+https://github.com/ultimaker/libcharon@CURA-9495_analyzer_requisites#egg=charon
64+
65+
- name: Install dependencies and build CuraEngine
66+
run: conan build . -s build_type=Release --build=missing --update -g VirtualRunEnv -o "curaengine/*:with_cura_resources=True"
7567

7668
- name: Collect STL-files, run CuraEngine, output GCode-files
7769
run: |
70+
source build/Release/generators/conanrun.sh
71+
echo $CURA_RESOURCES
72+
ls $CURA_RESOURCES
7873
for file in `ls NightlyTestModels/*.stl`;
7974
do
8075
( time ./build/Release/CuraEngine slice --force-read-parent --force-read-nondefault -v -p -j $CURA_RESOURCES/definitions/ultimaker_s3.def.json -l $file -o `basename $file .stl`.gcode ) 2> `basename $file .stl`.time
@@ -83,6 +78,8 @@ jobs:
8378
# TODO: Move this to GCodeAnalyzer
8479
- name: Run GCodeAnalyzer on generated GCode files
8580
id: gcode_out
81+
shell: python
82+
working-directory: GCodeAnalyzer
8683
run: |
8784
import sys
8885
import os
@@ -205,8 +202,6 @@ jobs:
205202
206203
with open("../output.json", "w") as outfile:
207204
outfile.write(json.dumps(jzon))
208-
shell: python
209-
working-directory: GCodeAnalyzer
210205
211206
- name: Store benchmark result
212207
uses: benchmark-action/github-action-benchmark@v1
Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,21 @@
11
name: lint-formatter
22

33
on:
4-
workflow_dispatch:
5-
64
push:
75
paths:
86
- 'include/**/*.h*'
97
- 'src/**/*.c*'
108

9+
pull_request:
10+
types: [ opened ]
11+
paths:
12+
- 'include/**/*.h*'
13+
- 'src/**/*.c*'
14+
1115
jobs:
1216
lint-formatter-job:
13-
name: Auto-apply clang-format
14-
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
20-
- uses: greguintow/get-diff-action@v7
21-
with:
22-
PATTERNS: |
23-
include/**/*.h*
24-
src/**/*.c*
25-
26-
- name: Setup Python and pip
27-
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version: 3.11.x
31-
cache: 'pip'
32-
cache-dependency-path: .github/workflows/requirements-linter.txt
33-
34-
- name: Install Python requirements for runner
35-
if: env.GIT_DIFF && !env.MATCHED_FILES
36-
run: pip install -r .github/workflows/requirements-linter.txt
37-
38-
- name: Format file
39-
if: env.GIT_DIFF && !env.MATCHED_FILES
40-
run: |
41-
clang-format -i ${{ env.GIT_DIFF_FILTERED }}
42-
43-
- uses: stefanzweifel/git-auto-commit-action@v4
44-
if: env.GIT_DIFF && !env.MATCHED_FILES
45-
with:
46-
commit_message: "Applied clang-format."
17+
uses: ultimaker/cura-workflows/.github/workflows/lint-formatter.yml@main
18+
with:
19+
file_patterns: +(include|src)/**/*.+(h|hpp|c|cpp)
20+
command: clang-format --verbose -i
21+
commit_message: "Apply clang-format"

.github/workflows/npm-package.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: conan-package
1+
name: package
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
- 'conanfile.py'
1010
- 'conandata.yml'
1111
- 'CMakeLists.txt'
12-
- '.github/workflows/conan-package.yml'
12+
- '.github/workflows/package.yml'
1313
branches:
1414
- main
1515
- 'CURA-*'
@@ -29,7 +29,7 @@ on:
2929
- 'conanfile.py'
3030
- 'conandata.yml'
3131
- 'CMakeLists.txt'
32-
- '.github/workflows/conan-package.yml'
32+
- '.github/workflows/package.yml'
3333
branches:
3434
- main
3535
- 'CURA-*'
@@ -44,3 +44,11 @@ jobs:
4444
with:
4545
platform_wasm: true
4646
secrets: inherit
47+
48+
npm-package:
49+
needs: [ conan-package ]
50+
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-') || startsWith(github.ref_name, '5.')) }} # FIXME: have a more generic way to determine release branches
51+
uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@main
52+
with:
53+
package_version_full: ${{ needs.conan-package.outputs.package_version_full }}
54+
secrets: inherit

.github/workflows/stress_benchmark.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,19 @@ permissions:
2727
contents: write
2828
deployments: write
2929

30-
env:
31-
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
32-
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
33-
3430

3531
jobs:
3632
check_actor:
3733
uses: ultimaker/cura-workflows/.github/workflows/check-actor.yml@main
3834
secrets: inherit
3935

40-
conan-recipe-version:
41-
needs: [ check_actor ]
42-
if: ${{ needs.check_actor.outputs.proceed == 'true' }}
43-
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
44-
4536
benchmark:
46-
needs: [ conan-recipe-version ]
4737
uses: ultimaker/cura-workflows/.github/workflows/benchmark.yml@main
4838
with:
49-
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
50-
conan_extra_args: "-o curaengine:enable_benchmarks=True"
39+
conan_extra_args: "-c tools.build:skip_test=False -o \"curaengine/*:enable_benchmarks=True\""
5140
benchmark_cmd: "stress_benchmark/stress_benchmark -o benchmark_result.json"
5241
name: "Stress Benchmark"
53-
output_file_path: "build/Release/benchmark_result.json"
42+
output_file_path: "benchmark_result.json"
5443
data_dir: "dev/stress_bench"
5544
tool: "customSmallerIsBetter"
5645
secrets: inherit

CuraEngineJS/.npmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

CuraEngineJS/package-lock.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

CuraEngineJS/package.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)