|
68 | 68 | fi |
69 | 69 | echo -e $output |
70 | 70 | sh -c "exit $status" |
71 | | - if: matrix.ob_branch == 'dev' || matrix.ob_branch == 'reduce_install_scope' |
72 | | - |
73 | | - - name: Run benchmark |
74 | | - shell: bash -l {0} |
75 | | - run: | |
76 | | - env |
77 | | - output=$( ob run benchmark -b Clustering.yaml --local --threads 10 2>&1 ) |
78 | | - status=$? |
79 | | - if echo "$output" | grep -i 'Benchmark run has finished successfully'; then |
80 | | - status=0 |
81 | | - fi |
82 | | - echo -e $output |
83 | | - sh -c "exit $status" |
84 | | - if: matrix.ob_branch == 'main' |
85 | | - |
86 | | - # upload-artifact: |
87 | | - # name: Benchmark Artifact |
88 | | - # runs-on: ubuntu-latest |
89 | | - # ## runs-on: self-hosted |
90 | | - # needs: run-benchmark |
91 | | - # if: always() |
92 | | - # steps: |
93 | | - # - name: Check out repository |
94 | | - # uses: actions/checkout@v4 |
95 | | - |
96 | | - # - name: Load cached output |
97 | | - # uses: actions/cache@v3 |
98 | | - # with: |
99 | | - # path: out/ |
100 | | - # key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }} |
101 | | - |
102 | | - # - name: Prepare output |
103 | | - # run: | |
104 | | - # zip -r benchmark_output.zip out/ |
105 | | - # mkdir -p gh-pages |
106 | | - # cp out/plotting/plotting_report.html gh-pages/index.html |
107 | | - |
108 | | - # - name: Upload zipped output |
109 | | - # uses: actions/upload-artifact@v4 |
110 | | - # with: |
111 | | - # name: benchmark-output |
112 | | - # path: benchmark_output.zip |
113 | | - # retention-days: 7 |
114 | | - |
115 | | - # - name: Upload Pages Artifact |
116 | | - # uses: actions/upload-pages-artifact@v3 |
117 | | - # with: |
118 | | - # path: gh-pages |
119 | | - |
120 | | - # - name: Deploy to GitHub Pages |
121 | | - # uses: actions/deploy-pages@v4 |
122 | | - |
123 | | - # - name: Create Job Summary |
124 | | - # if: always() |
125 | | - # run: | |
126 | | - # echo "### Reports" >> $GITHUB_STEP_SUMMARY |
127 | | - # echo "- [Plotting Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }})" >> $GITHUB_STEP_SUMMARY |
128 | | - # echo "### All Outputs" >> $GITHUB_STEP_SUMMARY |
129 | | - # echo "- [Complete Benchmark Output](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)" >> $GITHUB_STEP_SUMMARY |
130 | | - |
0 commit comments