-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
97 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,86 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
main | ||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
jobs: | ||
ctan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
- name: release.sh | ||
uses: dante-ev/latex-action@latest | ||
# We need java, pandoc, and more, which is not provided directly by the image | ||
uses: dante-ev/latex-action@edge | ||
with: | ||
entrypoint: ./release.sh | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ctan | ||
path: plantuml.tar.gz | ||
build_and_publish: | ||
build_and_ghpages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
- name: example-minimal | ||
uses: dante-ev/latex-action@latest | ||
- uses: actions/setup-java@v4 | ||
with: | ||
root_file: example-minimal.tex | ||
compiler: lualatex | ||
args: -interaction=nonstopmode -shell-escape | ||
- name: example-class-relations--svg | ||
uses: dante-ev/latex-action@latest | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Cache PlantUML jar | ||
id: cache-plantuml | ||
uses: actions/cache@v4 | ||
with: | ||
root_file: example-class-relations--svg.tex | ||
compiler: lualatex | ||
args: -interaction=nonstopmode -shell-escape | ||
- name: example-class-relations--latex | ||
uses: dante-ev/latex-action@latest | ||
path: /tmp/plantuml | ||
key: plantuml-asl-1.2024.6.jar | ||
- name: wget PlantUML jar | ||
if: steps.cache-plantuml.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir /tmp/plantuml | ||
cd /tmp/plantuml | ||
wget https://github.com/plantuml/plantuml/releases/download/v1.2024.6/plantuml-asl-1.2024.6.jar | ||
- name: Set PLANTUML_JAR | ||
run: echo "PLANTUML_JAR=/tmp/plantuml/plantuml-asl-1.2024.6.jar" >> "$GITHUB_ENV" | ||
- uses: actions/checkout@v4 | ||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
root_file: example-class-relations--latex.tex | ||
compiler: lualatex | ||
args: -interaction=nonstopmode -shell-escape | ||
- name: example-component-diagram | ||
uses: dante-ev/latex-action@latest | ||
packages: graphviz inkscape | ||
version: 1.0 | ||
execute_install_scripts: true | ||
- run: dpkg -L inkscape | ||
- run: which inkscape | ||
- name: Install TeX Live | ||
uses: zauguin/install-texlive@v3 | ||
with: | ||
root_file: example-component-diagram.tex | ||
compiler: lualatex | ||
args: -interaction=nonstopmode -shell-escape | ||
package_file: tl_packages | ||
- name: example-minimal | ||
run: lualatex -shell-escape example-minimal.tex | ||
- name: example-class-relations--latex | ||
run: lualatex -shell-escape example-class-relations--latex | ||
- name: example-class-relations--svg | ||
run: lualatex -shell-escape example-class-relations--svg | ||
- name: example-component-diagram | ||
run: lualatex -shell-escape example-component-diagram | ||
- name: example-multiple-diagrams-svg | ||
run: lualatex -shell-escape example-multiple-diagrams-svg | ||
- name: Gather build artifacts | ||
run: | | ||
mkdir build | ||
mv example-*.pdf build/ | ||
mv example-*.png build/ | ||
cp -r README.md .github/_config.yml build/ | ||
- name: Publish to GitHub pages | ||
if: success() && github.ref == 'refs/heads/main' | ||
if: github.ref == 'refs/heads/main' | ||
uses: crazy-max/ghaction-github-pages@v4 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: build/ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/upload-artifact@v4 | ||
if: github.ref != 'refs/heads/main' | ||
with: | ||
name: gh-pages | ||
path: build/ |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
# Proudly generated by the Island of TeX's DEPendency Printer https://gitlab.com/islandoftex/texmf/depp | ||
adjustbox | ||
cm | ||
collectbox | ||
ctablestack | ||
epstopdf-pkg | ||
fancyvrb | ||
graphics | ||
graphics-cfg | ||
graphics-def | ||
grfext | ||
ifoddpage | ||
iftex | ||
infwarerr | ||
koma-script | ||
kvdefinekeys | ||
kvoptions | ||
kvsetkeys | ||
l3backend | ||
l3kernel | ||
l3packages | ||
latex | ||
latex-bin | ||
latex-fonts | ||
latexconfig | ||
lm | ||
ltxcmds | ||
luacode | ||
luatexbase | ||
pdftexcmds | ||
pgf | ||
plantuml | ||
scheme-minimal | ||
varwidth | ||
xcolor | ||
xkeyval |