Generic SAFT implementation #147
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
name: build docs w/ compilation | |
on: [push, pull_request] | |
jobs: | |
Matrix-build: | |
runs-on: macos-latest | |
# container: node:latest | |
# See: https://github.com/marketplace/actions/setup-miniconda#important | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: checkout submodules | |
run: git submodule update --init --recursive | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
# mamba-version: "*" | |
channels: conda-forge, defaults | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
auto-update-conda: true | |
auto-activate-base: false | |
activate-environment: teqpdocs | |
environment-file: doc/environment.yml | |
- name: install teqp, built from source | |
# https://github.com/usnistgov/ChebTools/blob/master/README.md#prerequisites regarding the need for libgcc | |
# conda install libgcc libstdcxx-ng | |
run: | | |
conda list | |
python -m pip install . | |
cd doc | |
make html | |
- name: archive docs | |
run: cd doc && python -c "import shutil; shutil.make_archive('teqpdocs', 'xztar', 'build')" | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: | | |
./doc/*.tar.xz |