Skip to content

list_components

list_components #1310

# 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/62641e01-1e8d-4ace-91d6-ae03f7f8a71f/w_BaseKit_p_2024.0.0.49563.exe
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5b36181e-4974-4733-91c7-0c10c54900a5/w_HPCKit_p_2024.0.0.49588.exe
WINDOWS_IOTKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/dbdf4222-ff39-4c53-9b1a-23585f9a5e25/w_IoTKit_p_2023.2.0.49274.exe
WINDOWS_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b2a07c39-3374-4a4a-b1d0-56bbcb93ddce/w_RenderKit_p_2024.0.0.49657.exe
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564.sh
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1b2baedd-a757-4a79-8abb-a5bf15adae9a/l_HPCKit_p_2024.0.0.49589.sh
LINUX_IOTKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/792937e1-5667-47a9-a9df-e1142fce55b5/l_IoTKit_p_2023.2.0.49273.sh
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/4c0e0228-7d3b-40e2-8a2c-eae82f77b0c8/l_AITools.2024.0.1.3.sh
LINUX_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18e978f0-5a80-4006-bf34-207f205b8f4f/l_RenderKit_p_2024.0.0.49659.sh
MACOS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/cd013e6c-49c4-488b-8b86-25df6693a9b7/m_BaseKit_p_2023.2.0.49398.dmg
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/edb4dc2f-266f-47f2-8d56-21bc7764e119/m_HPCKit_p_2023.2.0.49443.dmg
MACOS_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c8679a2f-fe17-4879-8d53-e4866060d38e/m_RenderKit_p_2024.0.0.49658.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 IoT Toolkit
run: scripts/list_components_windows.bat $WINDOWS_IOTKIT_URL doc\\source\\${{ github.workflow }}\\${{ github.job }}_iotkit.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 IoT Toolkit
run: scripts/list_components_linux.sh $LINUX_IOTKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_iotkit.txt
- name: Intel® oneAPI Rendering Toolkit
run: scripts/list_components_linux.sh $LINUX_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
- name: Intel® AI Tools Toolkit
run: scripts/list_components_linux_aitools.sh $LINUX_AIKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_aitools.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 Base Toolkit
run: scripts/list_components_macos.sh $MACOS_BASEKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_basekit.txt
- name: Intel® oneAPI HPC Toolkit
run: scripts/list_components_macos.sh $MACOS_HPCKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_hpckit.txt
- 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
needs: [windows, linux, 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 - 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*" -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