Skip to content

Commit cd323cf

Browse files
total re-design; check cahce
1 parent a7da685 commit cd323cf

File tree

1 file changed

+20
-36
lines changed

1 file changed

+20
-36
lines changed

.github/workflows/reusable_docs_build.yml

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
DocsBuild:
15+
prepare:
1616
name: Docs build
1717
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
1818

@@ -22,48 +22,32 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424

25-
- name: Install doxygen
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y doxygen
29-
30-
# Latest distros do not allow global pip installation
31-
- name: Install Python requirements in venv
25+
- name: Create something
3226
run: |
33-
python3 -m venv .venv
34-
. .venv/bin/activate
35-
echo "$PATH" >> $GITHUB_PATH
36-
python3 -m pip install -r third_party/requirements.txt
27+
mkdir test_dir
28+
cd test_dir
29+
echo "Hello, world!" > test_cache_file.txt
3730
38-
- name: Build the documentation
39-
run: |
40-
cmake -B build \
41-
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF \
42-
-DUMF_BUILD_CUDA_PROVIDER=OFF \
43-
-DUMF_BUILD_TESTS=OFF \
44-
-DUMF_BUILD_EXAMPLES=OFF \
45-
-DUMF_DISABLE_HWLOC=ON
46-
cmake --build build --target docs
31+
- name: Upload something
32+
if: ${{ always() && inputs.upload_report }}
33+
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
34+
with:
35+
path: test_dir/test_cache_file.txt
36+
key: fake-results-${{ github.run_id }}
4737

48-
- name: Create dir for bench results
49-
run: mkdir -p umf-repo/build
38+
DocsBuild:
39+
name: Docs build
40+
needs: prepare
41+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
5042

43+
steps:
5144
# If we upload HTML docs, we want to include benchmark results as well
5245
- name: Download benchmark HTML before uploading docs
53-
# if: ${{ inputs.upload == true }}
5446
id: download-bench-html
5547
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5648
with:
57-
path: umf-repo/build/benchmark_results.html
58-
key: benchmark-results-
49+
path: test_dir/test_cache_file.txt
50+
key: fake-results-
5951

60-
- name: Move benchmark HTML
61-
# if: ${{ inputs.upload == true && steps.download-bench-html.outputs.cache-hit != '' }}
62-
run: |
63-
mv umf-repo/build/benchmark_results.html ${{github.workspace}}/build/docs_build/generated/html
64-
65-
- name: Upload artifact
66-
if: ${{ inputs.upload == true }}
67-
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3.0.0
68-
with:
69-
path: build/docs_build/generated/html
52+
- name: Print all files
53+
run: ls -al

0 commit comments

Comments
 (0)