63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: 'Docs'
|
|
|
|
on:
|
|
# This will run tests on pushes
|
|
# to master branch and every monday:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'master'
|
|
- 'test-cache'
|
|
schedule:
|
|
- cron: '0 10 * * 1'
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
LISP: sbcl-bin
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Grant All Perms on /usr/local/etc/roswell
|
|
# This makes cache restoration possible
|
|
run: sudo mkdir -p /usr/local/etc/roswell && sudo chown "${USER}" /usr/local/etc/roswell
|
|
- name: Cache Roswell Setup
|
|
id: cache
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-roswell
|
|
with:
|
|
# ~/.cache/common-lisp/
|
|
path: |
|
|
~/.roswell
|
|
/usr/local/etc/roswell
|
|
.qlot
|
|
key: "${{ runner.os }}-build1-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}"
|
|
- name: Check dirs
|
|
run: |
|
|
set -x
|
|
ls ~/.roswell
|
|
ls /usr/local/etc/roswell
|
|
ls .qlot
|
|
- name: Restore Path
|
|
run: |
|
|
echo $HOME/.roswell/bin >> $GITHUB_PATH
|
|
echo .qlot/bin >> $GITHUB_PATH
|
|
if: steps.cache.outputs.cache-hit == 'true'
|
|
- uses: 40ants/setup-lisp@test-cache
|
|
# if: steps.cache.outputs.cache-hit != 'true'
|
|
- name: Check dirs again
|
|
run: |
|
|
set -x
|
|
which ros
|
|
ls ~/.roswell
|
|
ls /usr/local/etc/roswell
|
|
ls .qlot
|
|
|
|
|
|
# - uses: 40ants/build-docs@v1
|
|
# with:
|
|
# asdf-system: docs
|
|
# # ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}
|