@@ -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
2928jobs :
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
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
0 commit comments