conda init #2
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
Matrix-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: checkout submodules | |
run: git submodule update --init --recursive | |
- name: conda env create | |
run: cd doc && conda env create && conda init | |
- name: install teqp, built from source | |
run: | | |
conda activate teqpdocs | |
CXX=clang++ python -m pip install . | |
- name: build docs | |
run: | | |
conda activate teqpdocs | |
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: | | |
./docs/*.tar.xz |