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

67 lines
1.7 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 20:46:39 +00:00
run: sudo mkdir -p /usr/local/etc/roswell && sudo chown "${USER}" /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:59:40 +00:00
# ~/.cache/common-lisp/
path: |
~/.roswell
/usr/local/etc/roswell
.qlot
key: "${{ runner.os }}-build1-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}"
2021-02-24 20:48:22 +00:00
- name: Check dirs
run: |
set -x
ls ~/.roswell
ls /usr/local/etc/roswell
ls .qlot
2021-02-24 20:52:17 +00:00
- 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
2021-02-24 20:59:40 +00:00
which ros
2021-02-24 21:02:52 +00:00
which qlot
2021-02-24 21:02:15 +00:00
ls /usr/local/bin
tree /usr/local
2021-02-24 20:52:17 +00:00
ls ~/.roswell
ls /usr/local/etc/roswell
ls .qlot
2021-02-24 20:54:41 +00:00
2021-02-24 20:52:17 +00:00
# - uses: 40ants/build-docs@v1
# with:
# asdf-system: docs
# # ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}