Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ubuntu upgrade before installing tex dependencies #34

Merged
merged 5 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
jobs:
render:
uses: AlgebraicJulia/.github/.github/workflows/render_quarto.yml@main
uses: ./.github/workflows/render_quarto.yml
with:
build_all: false
save_build: true
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/render_quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Render Quarto Website
on:
workflow_call:
inputs:
build_all:
description: "Whether or not to delete the _freeze directory before rendering"
required: true
type: boolean
save_build:
description: "Whether or not to upload _site and _freeze artifacts"
required: true
type: boolean
jobs:
render:
runs-on: ubuntu-latest
env:
# Work around GR segfault: https://github.com/jheinen/GR.jl/issues/422
GKSwstype: nul
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Intall LaTeX dependencies
run: |
sudo apt-get update
sudo apt-get install graphviz pdf2svg dvisvgm
quarto install tinytex --update-path
tlmgr update --self
tlmgr install tikz-cd luatex85
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.8
- name: Setup up Julia Project
run: |
python3 -m pip install jupyter
julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate();'
- name: Remove frozen posts
if: ${{ inputs.build_all }}
run: |
rm -rf _freeze _site
# TODO: IF RENDER FAILS, OPEN NEW ISSUE OF BROKEN POSTS
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
- uses: actions/upload-artifact@v3
if: ${{ inputs.save_build }}
with:
name: _site
path: _site
- uses: actions/upload-artifact@v3
if: ${{ inputs.save_build }}
with:
name: _freeze
path: _freeze
Loading