list_components #1511
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/d91caaa0-7306-46ea-a519-79a0423e1903/w_BaseKit_p_2024.2.1.101.exe | |
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/745e923a-3f85-4e1e-b6dd-637c0e9ccba6/w_HPCKit_p_2024.2.1.80.exe | |
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e6ff8e9c-ee28-47fb-abd7-5c524c983e1c/l_BaseKit_p_2024.2.1.100.sh | |
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d461a695-6481-426f-a22f-b5644cd1fa8b/l_HPCKit_p_2024.2.1.79.sh | |
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0414ef18-5b64-47f2-9b2e-ae94860272b9/l_AITools.2024.1.0.9.sh | |
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: 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: 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 | |
publish: | |
runs-on: ubuntu-20.04 | |
permissions: | |
pull-requests: write | |
pages: write | |
contents: write | |
needs: [windows, linux, linux_aitools, linux_apt, linux_yum_dnf] | |
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 }} | |
- 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 github-actions@github.com | |
git add . | |
git commit -m "Update from github actions" || exit 0 | |
git push |