@@ -31,59 +31,95 @@ jobs:
31
31
shell : bash
32
32
steps :
33
33
- uses : actions/checkout@v2
34
+ - uses : actions/setup-python@v2
35
+ with :
36
+ python-version : ' 3.x'
34
37
- name : Intel® oneAPI Base Toolkit
35
- run : scripts/list_components_windows.bat $WINDOWS_BASEKIT_URL
38
+ run : scripts/list_components_windows.bat $WINDOWS_BASEKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_basekit.txt
36
39
- name : Intel® oneAPI HPC Toolkit
37
- run : scripts/list_components_windows.bat $WINDOWS_HPCKIT_URL
40
+ run : scripts/list_components_windows.bat $WINDOWS_HPCKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_hpckit.txt
38
41
- name : Intel® oneAPI IoT Toolkit
39
- run : scripts/list_components_windows.bat $WINDOWS_IOTKIT_URL
42
+ run : scripts/list_components_windows.bat $WINDOWS_IOTKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_iotkit.txt
40
43
- name : Intel® oneAPI Rendering Toolkit
41
- run : scripts/list_components_windows.bat $WINDOWS_RENDERKIT_URL
44
+ run : scripts/list_components_windows.bat $WINDOWS_RENDERKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_renderkit.txt
45
+
46
+ - name : Upload artifacts
47
+ uses : actions/upload-artifact@v2
48
+ with :
49
+ name : ${{ github.job }}
50
+ path : doc/source/${{ github.workflow }}/${{ github.job }}_*
42
51
43
52
linux :
44
- runs-on : ubuntu-latest
53
+ runs-on : ubuntu-20.04
45
54
defaults :
46
55
run :
47
56
shell : bash
48
57
steps :
49
58
- uses : actions/checkout@v2
59
+ - uses : actions/setup-python@v2
60
+ with :
61
+ python-version : ' 3.x'
50
62
- name : Intel® oneAPI Base Toolkit
51
- run : scripts/list_components_linux.sh $LINUX_BASEKIT_URL
63
+ run : scripts/list_components_linux.sh $LINUX_BASEKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_basekit.txt
52
64
- name : Intel® oneAPI HPC Toolkit
53
- run : scripts/list_components_linux.sh $LINUX_HPCKIT_URL
65
+ run : scripts/list_components_linux.sh $LINUX_HPCKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_hpckit.txt
54
66
- name : Intel® oneAPI IoT Toolkit
55
- run : scripts/list_components_linux.sh $LINUX_IOTKIT_URL
67
+ run : scripts/list_components_linux.sh $LINUX_IOTKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_iotkit.txt
56
68
- name : Intel® AI Analytics Toolkit
57
- run : scripts/list_components_linux.sh $LINUX_AIKIT_URL
69
+ run : scripts/list_components_linux.sh $LINUX_AIKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_aikit.txt
58
70
- name : Intel® oneAPI DL Framework Developer Toolkit
59
- run : scripts/list_components_linux.sh $LINUX_DLFDKIT_URL
71
+ run : scripts/list_components_linux.sh $LINUX_DLFDKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_dlfdkit.txt
60
72
- name : Intel® oneAPI Rendering Toolkit
61
- run : scripts/list_components_linux.sh $LINUX_RENDERKIT_URL
73
+ run : scripts/list_components_linux.sh $LINUX_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
74
+
75
+ - name : Upload artifacts
76
+ uses : actions/upload-artifact@v2
77
+ with :
78
+ name : ${{ github.job }}
79
+ path : doc/source/${{ github.workflow }}/${{ github.job }}_*
62
80
63
81
linux_apt :
64
- runs-on : ubuntu-latest
82
+ runs-on : ubuntu-20.04
65
83
defaults :
66
84
run :
67
85
shell : bash
68
86
steps :
69
87
- uses : actions/checkout@v2
88
+ - uses : actions/setup-python@v2
89
+ with :
90
+ python-version : ' 3.x'
70
91
- name : setup apt repo
71
92
run : scripts/setup_apt_repo_linux.sh
72
93
- name : Intel® oneAPI packages provided in APT repository
73
- run : scripts/list_components_linux_apt.sh
94
+ run : scripts/list_components_linux_apt.sh doc/source/${{ github.workflow }}/${{ github.job }}.txt
95
+
96
+ - name : Upload artifacts
97
+ uses : actions/upload-artifact@v2
98
+ with :
99
+ name : ${{ github.job }}
100
+ path : doc/source/${{ github.workflow }}/${{ github.job }}.txt
74
101
75
102
linux_yum_dnf :
76
- runs-on : ubuntu-latest
103
+ runs-on : ubuntu-20.04
77
104
container : fedora
78
105
defaults :
79
106
run :
80
107
shell : bash
81
108
steps :
82
109
- uses : actions/checkout@v2
110
+ - uses : actions/setup-python@v2
111
+ with :
112
+ python-version : ' 3.x'
83
113
- name : setup yum/dnf repo
84
114
run : scripts/setup_yum_dnf_repo_linux.sh
85
115
- name : Intel® oneAPI packages provided in YUM/DNF repository
86
- run : scripts/list_components_linux_dnf.sh
116
+ run : scripts/list_components_linux_dnf.sh doc/source/${{ github.workflow }}/${{ github.job }}.txt
117
+
118
+ - name : Upload artifacts
119
+ uses : actions/upload-artifact@v2
120
+ with :
121
+ name : ${{ github.job }}
122
+ path : doc/source/${{ github.workflow }}/${{ github.job }}.txt
87
123
88
124
macos :
89
125
runs-on : macos-latest
@@ -92,9 +128,87 @@ jobs:
92
128
shell : bash
93
129
steps :
94
130
- uses : actions/checkout@v2
131
+ - uses : actions/setup-python@v2
132
+ with :
133
+ python-version : ' 3.x'
95
134
- name : Intel® oneAPI Base Toolkit
96
- run : scripts/list_components_macos.sh $MACOS_BASEKIT_URL
135
+ run : scripts/list_components_macos.sh $MACOS_BASEKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_basekit.txt
97
136
- name : Intel® oneAPI HPC Toolkit
98
- run : scripts/list_components_macos.sh $MACOS_HPCKIT_URL
137
+ run : scripts/list_components_macos.sh $MACOS_HPCKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_hpckit.txt
99
138
- name : Intel® oneAPI Rendering Toolkit
100
- run : scripts/list_components_macos.sh $MACOS_RENDERKIT_URL
139
+ run : scripts/list_components_macos.sh $MACOS_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
140
+
141
+ - name : Upload artifacts
142
+ uses : actions/upload-artifact@v2
143
+ with :
144
+ name : ${{ github.job }}
145
+ path : doc/source/${{ github.workflow }}/${{ github.job }}_*
146
+
147
+ publish :
148
+ runs-on : ubuntu-20.04
149
+ needs : [windows, linux, linux_apt, linux_yum_dnf, macos]
150
+ defaults :
151
+ run :
152
+ shell : bash
153
+ working-directory : doc
154
+ steps :
155
+ - uses : actions/checkout@v2
156
+ - name : Download artifacts - windows
157
+ uses : actions/download-artifact@v2
158
+ with :
159
+ name : windows
160
+ path : doc/source/${{ github.workflow }}
161
+ - name : Download artifacts - linux
162
+ uses : actions/download-artifact@v2
163
+ with :
164
+ name : linux
165
+ path : doc/source/${{ github.workflow }}
166
+ - name : Download artifacts - linux_apt
167
+ uses : actions/download-artifact@v2
168
+ with :
169
+ name : linux_apt
170
+ path : doc/source/${{ github.workflow }}
171
+ - name : Download artifacts - linux_yum_dnf
172
+ uses : actions/download-artifact@v2
173
+ with :
174
+ name : linux_yum_dnf
175
+ path : doc/source/${{ github.workflow }}
176
+ - name : Download artifacts - macos
177
+ uses : actions/download-artifact@v2
178
+ with :
179
+ name : macos
180
+ path : doc/source/${{ github.workflow }}
181
+ - uses : actions/setup-python@v2
182
+ with :
183
+ python-version : ' 3.x'
184
+ - name : Install prerequisites
185
+ run : python -m pip install --quiet -r requirements.txt
186
+ - name : Build doc
187
+ run : |
188
+ find source/${{ github.workflow }} -type f -maxdepth 1 ! -name "*apt*" ! -name "*yum*" -exec sed -i -e 1,5d {} \;
189
+ find source/${{ github.workflow }} -type f -maxdepth 1 -name "*windows*" -exec sed -i -e 1,2d {} \;
190
+ sed -i -e 1,7d source/${{ github.workflow }}/linux_yum_dnf.txt
191
+ make html
192
+ - name : Save built doc as artifact
193
+ uses : actions/upload-artifact@v2
194
+ with :
195
+ name : ${{ github.job }}
196
+ path : doc/build
197
+ - name : Checkout gh-pages
198
+ if : ${{ github.ref == 'refs/heads/master' }}
199
+ uses : actions/checkout@v2
200
+ with :
201
+ ref : gh-pages
202
+ path : gh-pages
203
+ - name : Publish to github pages
204
+ if : ${{ github.ref == 'refs/heads/master' }}
205
+ run : |
206
+ cd ../gh-pages
207
+ rm -rf *
208
+ touch .nojekyll
209
+ cp -r ../doc/build/html/* .
210
+ git config user.name github-actions
211
+ git config user.email [email protected]
212
+ git add .
213
+ git commit -m "Update from github actions"
214
+ git push
0 commit comments