[oneMKL][DFT] Specification for external workspaces for DFTs #1100
Workflow file for this run
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: 2019-2020 Intel Corporation | |
# | |
# SPDX-License-Identifier: MIT | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
checks: | |
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Checks | |
uses: pre-commit/action@v3.0.0 | |
build: | |
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install ubuntu prerequisites | |
run: | | |
sudo apt update -qq | |
xargs -a ubuntu-packages.txt sudo apt install -qq | |
curl -s https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz -o /tmp/dox.tgz | |
sudo tar zxf /tmp/dox.tgz -C /usr/local | |
sudo ln -s /usr/local/doxygen*/bin/* /usr/bin | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install python prerequisites | |
run: pip install --quiet -r requirements.txt | |
- name: Build html | |
env: | |
ONEAPI_DRAFT: true | |
run: | | |
python scripts/oneapi.py -W html | |
- name: Build pdf | |
env: | |
ONEAPI_DRAFT: true | |
run: | | |
python scripts/oneapi.py -W latexpdf | |
- name: Build website | |
run: | | |
mkdir -p site/spec | |
touch site/.nojekyll | |
cp -r build/html/* site/spec | |
cp build/latex/*.pdf site/spec | |
- name: Archive site | |
uses: actions/upload-artifact@v3 | |
with: | |
name: site | |
path: site | |
publish_site: | |
needs: [checks, build] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} | |
steps: | |
- name: Checkout gh-pages | |
uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Retrieve site | |
uses: actions/download-artifact@v3 | |
with: | |
name: site | |
path: gh-pages | |
- name: Publish to github pages | |
run: | | |
cd gh-pages | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add . | |
git commit --reset-author --amend -m "Update from github actions" | |
git push --force origin gh-pages |