Test without Inkscape #1
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
on: | |
push: | |
branches: | |
- master | |
- thw/deploy-ni | |
jobs: | |
deploy: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: '12' | |
- name: Install pandoc | |
run: | | |
URL="https://github.com/jgm/pandoc/releases/latest" | |
PANDOCPAGE="$(wget $URL -q -O -)" | |
DEBURL="$(echo $PANDOCPAGE | grep -oP '"([^"]+.deb)"')" | |
DEBURL="${DEBURL:1:-1}" | |
URL="http://github.com$DEBURL" | |
wget $URL -O /tmp/pandoc.deb | |
sudo dpkg -i /tmp/pandoc.deb | |
# The above script adapted from https://gist.github.com/rossant/8b751a15d71d6d9403a8 | |
- name: Install TeX Live and Inkscape | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y texlive texlive-fonts-extra latexmk | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Fetch Yarn dependencies | |
run: | | |
yarn install | |
- name: Build | |
run: | | |
set -euxo pipefail | |
yarn run pdf || (cat latex_pdf/sicpjs.log && false) | |
yarn run epub | |
yarn run web | |
yarn run split | |
yarn run js |