setup-lisp/.github/workflows/docs.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

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
2021-02-24 21:30:11 +00:00
run: |
sudo mkdir -p /usr/local/etc/roswell
sudo chown "${USER}" /usr/local/etc/roswell
# Here the ros binary will be restored:
sudo chown "${USER}" /usr/local/bin
2021-02-24 21:39:52 +00:00
- name: Get Current Month
id: current-month
run: |
echo "::set-output name=value::$(date -u "+%Y-%m")"
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:
path: |
2021-02-24 21:07:54 +00:00
/usr/local/bin/ros
~/.cache/common-lisp/
~/.roswell
/usr/local/etc/roswell
.qlot
2021-02-24 21:39:52 +00:00
key: "${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('qlfile.lock') }}"
2021-02-24 21:38:22 +00:00
- name: Restore Path To Cached Files
2021-02-24 21:30:11 +00:00
run: |
echo $HOME/.roswell/bin >> $GITHUB_PATH
echo .qlot/bin >> $GITHUB_PATH
if: steps.cache.outputs.cache-hit == 'true'
2021-02-24 20:52:17 +00:00
- uses: 40ants/setup-lisp@test-cache
2021-02-24 21:33:26 +00:00
if: steps.cache.outputs.cache-hit != 'true'
2021-02-24 21:47:59 +00:00
- uses: 40ants/build-docs@v2-alpha
2021-02-24 21:38:22 +00:00
with:
asdf-system: docs
# ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}