-
Notifications
You must be signed in to change notification settings - Fork 36
226 lines (212 loc) · 8.04 KB
/
list_components.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# SPDX-FileCopyrightText: 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
name: list_components
permissions: read-all
on:
push: {}
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
env:
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7dff44ba-e3af-4448-841c-0d616c8da6e7/w_BaseKit_p_2024.1.0.595.exe
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c95a3b26-fc45-496c-833b-df08b10297b9/w_HPCKit_p_2024.1.0.561.exe
WINDOWS_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7c0c40d5-dd8e-4bc3-871b-4eb9e7ea46a4/w_RenderKit_p_2024.1.0.745.exe
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/fdc7a2bc-b7a8-47eb-8876-de6201297144/l_BaseKit_p_2024.1.0.596.sh
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7f096850-dc7b-4c35-90b5-36c12abd9eaa/l_HPCKit_p_2024.1.0.560.sh
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0414ef18-5b64-47f2-9b2e-ae94860272b9/l_AITools.2024.1.0.9.sh
LINUX_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5c90ec26-1319-4f42-9acf-841bfeb1e691/l_RenderKit_p_2024.1.0.743.sh
MACOS_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c112cca6-12cf-4a0c-9e5e-d0d50d3b0f8b/m_RenderKit_p_2024.1.0.744.dmg
jobs:
windows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Intel® oneAPI Base Toolkit
run: scripts/list_components_windows.bat $WINDOWS_BASEKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_basekit.txt
- name: Intel® oneAPI HPC Toolkit
run: scripts/list_components_windows.bat $WINDOWS_HPCKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_hpckit.txt
- name: Intel® oneAPI Rendering Toolkit
run: scripts/list_components_windows.bat $WINDOWS_RENDERKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_renderkit.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}_*
linux:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Intel® oneAPI Base Toolkit
run: scripts/list_components_linux.sh $LINUX_BASEKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_basekit.txt
- name: Intel® oneAPI HPC Toolkit
run: scripts/list_components_linux.sh $LINUX_HPCKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_hpckit.txt
- name: Intel® oneAPI Rendering Toolkit
run: scripts/list_components_linux.sh $LINUX_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}_*
linux_aitools:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Intel® AI Tools Toolkit
run: scripts/list_components_linux_aitools.sh $LINUX_AIKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}*
linux_apt:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: setup apt repo
run: scripts/setup_apt_repo_linux.sh
- name: Intel® oneAPI packages provided in APT repository
run: scripts/list_components_linux_apt.sh doc/source/${{ github.workflow }}/${{ github.job }}.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}.txt
linux_yum_dnf:
runs-on: ubuntu-20.04
container: fedora:37
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: setup yum/dnf repo
run: scripts/setup_yum_dnf_repo_linux.sh
- name: Intel® oneAPI packages provided in YUM/DNF repository
run: scripts/list_components_linux_dnf.sh doc/source/${{ github.workflow }}/${{ github.job }}.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}.txt
macos:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Intel® oneAPI Rendering Toolkit
run: scripts/list_components_macos.sh $MACOS_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/source/${{ github.workflow }}/${{ github.job }}_*
publish:
runs-on: ubuntu-20.04
permissions:
pull-requests: write
pages: write
contents: write
needs: [windows, linux, linux_aitools, linux_apt, linux_yum_dnf, macos]
defaults:
run:
shell: bash
working-directory: doc
steps:
- uses: actions/checkout@v2
- name: Download artifacts - windows
uses: actions/download-artifact@v2
with:
name: windows
path: doc/source/${{ github.workflow }}
- name: Download artifacts - linux
uses: actions/download-artifact@v2
with:
name: linux
path: doc/source/${{ github.workflow }}
- name: Download artifacts - linux_apt
uses: actions/download-artifact@v2
with:
name: linux_apt
path: doc/source/${{ github.workflow }}
- name: Download artifacts - linux_yum_dnf
uses: actions/download-artifact@v2
with:
name: linux_yum_dnf
path: doc/source/${{ github.workflow }}
- name: Download artifacts - linux_aitools
uses: actions/download-artifact@v2
with:
name: linux_aitools
path: doc/source/${{ github.workflow }}
- name: Download artifacts - macos
uses: actions/download-artifact@v2
with:
name: macos
path: doc/source/${{ github.workflow }}
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install prerequisites
run: python -m pip install --quiet -r requirements.txt
- name: Build doc
run: |
find source/${{ github.workflow }} -maxdepth 1 -type f ! -name "*apt*" ! -name "*yum*" ! -name "*aitools*" -exec sed -i -e 1,5d {} \;
find source/${{ github.workflow }} -maxdepth 1 -type f -name "*windows*" -exec sed -i -e 1,2d {} \; -exec sed -i s"/\r//g" {} \;
sed -i -e 1,7d source/${{ github.workflow }}/linux_yum_dnf.txt
make html
- name: Save built doc as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: doc/build
- name: Checkout gh-pages
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
if: ${{ github.ref == 'refs/heads/master' }}
run: |
cd ../gh-pages
rm -rf *
touch .nojekyll
cp -r ../doc/build/html/* .
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update from github actions" || exit 0
git push