Skip to content

Commit ed8068d

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

File tree

1 file changed

+19
-36
lines changed

1 file changed

+19
-36
lines changed

.github/workflows/reusable_docs_build.yml

Lines changed: 19 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,31 @@ 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+
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
33+
with:
34+
path: test_dir/test_cache_file.txt
35+
key: fake-results-${{ github.run_id }}
4736

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

42+
steps:
5143
# If we upload HTML docs, we want to include benchmark results as well
5244
- name: Download benchmark HTML before uploading docs
53-
# if: ${{ inputs.upload == true }}
5445
id: download-bench-html
5546
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5647
with:
57-
path: umf-repo/build/benchmark_results.html
58-
key: benchmark-results-
48+
path: test_dir/test_cache_file.txt
49+
key: fake-results-
5950

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
51+
- name: Print all files
52+
run: ls -al

0 commit comments

Comments
 (0)