This repository was archived by the owner on Aug 13, 2025. It is now read-only.
Idk. #43
This file contains hidden or 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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Get tags | |
run: git fetch --tags origin | |
- name: Restore cache | |
id: cache-ql | |
uses: actions/cache@v3.4.1 | |
with: | |
path: | | |
~/.quicklisp | |
~/.cache/common-lisp | |
~/.sbclrc | |
key: lisp | |
- name: Install packages | |
run: | | |
mkdir -p ~/.local/share/fonts | |
curl -Lo ~/.local/share/fonts/ComicSansMS.ttf https://github.com/ImageMagick/msttcorefonts/raw/main/fonts/Comic_Sans_MS.ttf | |
fc-cache -fv | |
sudo apt-get install --yes --no-install-recommends \ | |
sbcl xindy context macutils | |
- name: Setup TeX Live | |
uses: teatimeguest/setup-texlive-action@v3 | |
with: | |
package-file: | | |
.github/tl_packages | |
- name: Install env | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
curl https://beta.quicklisp.org/quicklisp.lisp \ | |
| cat - <(echo "(quicklisp-quickstart:install :path \"~/.quicklisp/\")" \ | |
"(when (< 0 (length \"$DIST\")) (ql-dist:install-dist \"$DIST\" :prompt NIL))" \ | |
"(ql::without-prompting (ql:add-to-init-file))" \ | |
"(ql:quickload '(clip cl-markless-plump) :silent T)") \ | |
| sbcl --noinform | |
env: | |
DIST: http://dist.shirakumo.org/shirakumo.txt | |
- name: Build | |
run: | | |
mkdir -p $OUTPUT | |
make | |
cp -r markless.html markless.css markless.pdf index.html index.css assets $OUTPUT | |
env: | |
OUTPUT: ${{ format('{0}/gh-pages/', runner.temp) }} | |
- name: Upload Github Pages Artefact | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: ${{ format('{0}/gh-pages/', runner.temp) }} | |
- name: Write to Github Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |