Skip to content

Commit 7839196

Browse files
authored
Merge branch 'main' into CURA-12065_fix-retraction-disabled-with-zhop
2 parents 6bd4aa3 + bef3141 commit 7839196

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
uses: ultimaker/cura-workflows/.github/workflows/benchmark.yml@main
3939
with:
4040
conan_extra_args: "-o \"curaengine/*:enable_benchmarks=True\""
41-
benchmark_cmd: "./build/Release/benchmark/benchmarks --benchmark_format=json --benchmark_out=benchmark_result.json"
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

.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: "-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

0 commit comments

Comments
 (0)