Skip to content

Commit a7da685

Browse files
test cache bench
1 parent 9377fd0 commit a7da685

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: GitHubPages
33

44
on:
5+
pull_request:
56
push:
67
branches: ["main"]
78

@@ -20,6 +21,7 @@ jobs:
2021
upload: true
2122

2223
DocsDeploy:
24+
if: false
2325
name: Deploy docs to GitHub Pages
2426
needs: DocsBuild
2527

.github/workflows/pr_push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ permissions:
1717

1818
jobs:
1919
CodeChecks:
20+
if: false
2021
uses: ./.github/workflows/reusable_checks.yml
2122
DocsBuild:
2223
uses: ./.github/workflows/reusable_docs_build.yml

.github/workflows/reusable_benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,5 @@ jobs:
159159
if: ${{ always() && inputs.upload_report }}
160160
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
161161
with:
162-
path: ${{env.BUILD_DIR}}/benchmark_results.html
162+
path: umf-repo/build/benchmark_results.html
163163
key: benchmark-results-${{ github.run_id }}

.github/workflows/reusable_docs_build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,22 @@ jobs:
4545
-DUMF_DISABLE_HWLOC=ON
4646
cmake --build build --target docs
4747
48-
- name: Download benchmark HTML before uploading with documentation on GitHub pages
49-
# If the benchmark results are meant to be uploaded on GH pages
50-
if: ${{ inputs.upload == true }}
48+
- name: Create dir for bench results
49+
run: mkdir -p umf-repo/build
50+
51+
# If we upload HTML docs, we want to include benchmark results as well
52+
- name: Download benchmark HTML before uploading docs
53+
# if: ${{ inputs.upload == true }}
5154
id: download-bench-html
5255
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5356
with:
54-
path: ${{github.workspace}}/build/benchmark_results.html
57+
path: umf-repo/build/benchmark_results.html
5558
key: benchmark-results-
5659

5760
- name: Move benchmark HTML
58-
if: ${{ inputs.upload == true && steps.download-bench-html.outputs.cache-hit != '' }}
59-
# exact or partial cache hit
61+
# if: ${{ inputs.upload == true && steps.download-bench-html.outputs.cache-hit != '' }}
6062
run: |
61-
mv ${{ github.workspace }}/build/benchmark_results.html ${{ github.workspace }}/build/docs_build/generated/html
63+
mv umf-repo/build/benchmark_results.html ${{github.workspace}}/build/docs_build/generated/html
6264
6365
- name: Upload artifact
6466
if: ${{ inputs.upload == true }}

0 commit comments

Comments
 (0)