2021-02-15 20:37:05 +00:00
|
|
|
name: 'Docs'
|
|
|
|
|
|
|
|
on:
|
|
|
|
# This will run tests on pushes
|
|
|
|
# to master branch and every monday:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'master'
|
2021-02-24 20:09:23 +00:00
|
|
|
- 'test-cache'
|
2021-02-15 20:37:05 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * 1'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
env:
|
|
|
|
LISP: sbcl-bin
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2021-02-24 20:38:11 +00:00
|
|
|
- name: Grant All Perms on /usr/local/etc/roswell
|
|
|
|
# This makes cache restoration possible
|
|
|
|
run: sudo mkdir /usr/local/etc/roswell && sudo chmod a+rwx /usr/local/etc/roswell
|
2021-02-24 20:09:23 +00:00
|
|
|
- name: Cache Roswell Setup
|
2021-02-24 20:38:11 +00:00
|
|
|
id: cache
|
2021-02-24 20:09:23 +00:00
|
|
|
uses: actions/cache@v2
|
|
|
|
env:
|
|
|
|
cache-name: cache-roswell
|
|
|
|
with:
|
2021-02-24 20:22:58 +00:00
|
|
|
path: |
|
|
|
|
~/.roswell
|
|
|
|
/usr/local/etc/roswell
|
|
|
|
.qlot
|
|
|
|
key: "${{ runner.os }}-build1-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}"
|
2021-02-24 20:38:11 +00:00
|
|
|
# - uses: 40ants/setup-lisp@test-cache
|
|
|
|
# if: steps.cache.outputs.cache-hit != 'true'
|
2021-02-15 20:37:05 +00:00
|
|
|
- uses: 40ants/build-docs@v1
|
|
|
|
with:
|
|
|
|
asdf-system: docs
|
2021-02-16 14:46:40 +00:00
|
|
|
# ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}
|