mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔨 Try to activate the poetry venv before running make
This commit is contained in:
parent
28b15f2569
commit
f26a2533e8
3 changed files with 19 additions and 16 deletions
8
.github/workflows/build-sphinx-report.yml
vendored
8
.github/workflows/build-sphinx-report.yml
vendored
|
@ -29,7 +29,9 @@ jobs:
|
|||
run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV
|
||||
- name: "Build HTML document with Sphinx"
|
||||
working-directory: report/
|
||||
run: make html
|
||||
run: |
|
||||
source $pythonLocation/activate
|
||||
make html
|
||||
- name: "Create a gzip of the build"
|
||||
run: "tar -xvzf report/_build/report.html.tar.gz report/_build/html"
|
||||
- name: "Upload build artifact"
|
||||
|
@ -61,7 +63,9 @@ jobs:
|
|||
run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
|
||||
- name: "Build Latex document with Sphinx"
|
||||
working-directory: report/
|
||||
run: make latexpdf
|
||||
run: |
|
||||
source $pythonLocation/activate
|
||||
make latexpdf
|
||||
- name: "Upload build artifact"
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
|
8
.github/workflows/build-sphinx-thesis.yml
vendored
8
.github/workflows/build-sphinx-thesis.yml
vendored
|
@ -29,7 +29,9 @@ jobs:
|
|||
run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV
|
||||
- name: "Build HTML document with Sphinx"
|
||||
working-directory: thesis/
|
||||
run: make html
|
||||
run: |
|
||||
source $pythonLocation/activate
|
||||
make html
|
||||
- name: "Create a gzip of the build"
|
||||
run: "tar -xvzf thesis/_build/thesis.html.tar.gz thesis/_build/html"
|
||||
- name: "Upload build artifact"
|
||||
|
@ -61,7 +63,9 @@ jobs:
|
|||
run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
|
||||
- name: "Build Latex document with Sphinx"
|
||||
working-directory: thesis/
|
||||
run: make latexpdf
|
||||
run: |
|
||||
source $pythonLocation/activate
|
||||
make latexpdf
|
||||
- name: "Upload build artifact"
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
|
|
@ -1,23 +1,18 @@
|
|||
# Minimal makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line, and also
|
||||
# from the environment for the first two.
|
||||
SPHINXOPTS ?=
|
||||
SPHINXBUILD ?= "sphinx-build"
|
||||
SOURCEDIR = "source"
|
||||
BUILDDIR = "build"
|
||||
export SPHINXOPTS =
|
||||
export SPHINXBUILD = "sphinx-build"
|
||||
export SOURCEDIR = "source"
|
||||
export BUILDDIR = "build"
|
||||
|
||||
export LATEXMKOPTS ?= ""
|
||||
export LATEXOPTS ?= "-interaction=nonstopmode"
|
||||
|
||||
# Put it first so that "make" without argument is like "make help".
|
||||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
|
||||
|
||||
|
||||
livehtml:
|
||||
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
|
||||
|
||||
|
||||
.PHONY: help Makefile
|
||||
|
@ -25,4 +20,4 @@ livehtml:
|
|||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
%: Makefile
|
||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
|
||||
|
|
Loading…
Reference in a new issue