1
Fork 0
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:
Steffo 2021-11-21 05:22:41 +01:00
parent 28b15f2569
commit f26a2533e8
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 19 additions and 16 deletions

View file

@ -29,7 +29,9 @@ jobs:
run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV
- name: "Build HTML document with Sphinx" - name: "Build HTML document with Sphinx"
working-directory: report/ working-directory: report/
run: make html run: |
source $pythonLocation/activate
make html
- name: "Create a gzip of the build" - name: "Create a gzip of the build"
run: "tar -xvzf report/_build/report.html.tar.gz report/_build/html" run: "tar -xvzf report/_build/report.html.tar.gz report/_build/html"
- name: "Upload build artifact" - 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 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" - name: "Build Latex document with Sphinx"
working-directory: report/ working-directory: report/
run: make latexpdf run: |
source $pythonLocation/activate
make latexpdf
- name: "Upload build artifact" - name: "Upload build artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View file

@ -29,7 +29,9 @@ jobs:
run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV
- name: "Build HTML document with Sphinx" - name: "Build HTML document with Sphinx"
working-directory: thesis/ working-directory: thesis/
run: make html run: |
source $pythonLocation/activate
make html
- name: "Create a gzip of the build" - name: "Create a gzip of the build"
run: "tar -xvzf thesis/_build/thesis.html.tar.gz thesis/_build/html" run: "tar -xvzf thesis/_build/thesis.html.tar.gz thesis/_build/html"
- name: "Upload build artifact" - 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 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" - name: "Build Latex document with Sphinx"
working-directory: thesis/ working-directory: thesis/
run: make latexpdf run: |
source $pythonLocation/activate
make latexpdf
- name: "Upload build artifact" - name: "Upload build artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View file

@ -1,23 +1,18 @@
# Minimal makefile for Sphinx documentation export SPHINXOPTS =
# export SPHINXBUILD = "sphinx-build"
export SOURCEDIR = "source"
# You can set these variables from the command line, and also export BUILDDIR = "build"
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= "sphinx-build"
SOURCEDIR = "source"
BUILDDIR = "build"
export LATEXMKOPTS ?= "" export LATEXMKOPTS ?= ""
export LATEXOPTS ?= "-interaction=nonstopmode" export LATEXOPTS ?= "-interaction=nonstopmode"
# Put it first so that "make" without argument is like "make help". # Put it first so that "make" without argument is like "make help".
help: help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
livehtml: livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
.PHONY: help Makefile .PHONY: help Makefile
@ -25,4 +20,4 @@ livehtml:
# Catch-all target: route all unknown targets to Sphinx using the new # Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile %: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)