@@ -12,7 +12,7 @@ permissions:
12
12
contents : read
13
13
14
14
jobs :
15
- DocsBuild :
15
+ prepare :
16
16
name : Docs build
17
17
runs-on : ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
18
18
@@ -22,48 +22,32 @@ jobs:
22
22
with :
23
23
fetch-depth : 0
24
24
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
32
26
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
37
30
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 }}
47
37
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' }}
50
42
43
+ steps :
51
44
# If we upload HTML docs, we want to include benchmark results as well
52
45
- name : Download benchmark HTML before uploading docs
53
- # if: ${{ inputs.upload == true }}
54
46
id : download-bench-html
55
47
uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
56
48
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-
59
51
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