setup-lisp/.github/workflows/docs.yml
2021-02-25 00:22:04 +03:00

73 lines
1.9 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: Get Current Month
# id: current-month
# run: |
# echo "::set-output name=value::$(date -u "+%Y-%m")"
# # use it as ${{ steps.current-month.outputs.value }}
- name: Cache Roswell Setup
id: cache
uses: actions/cache@v2
env:
cache-name: cache-roswell
with:
path: |
/usr/local/bin/ros
~/.cache/common-lisp/
~/.roswell
/usr/local/etc/roswell
.qlot
key: "${{ runner.os }}-build2-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}"
- name: Check dirs
run: |
set -x
which ros
which qlot
tree ~/.roswell
ls /usr/local/etc/roswell
ls .qlot
if: steps.cache.outputs.cache-hit == 'true'
- 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
which qlot
tree ~/.roswell
ls /usr/local/etc/roswell
ls .qlot
# - uses: 40ants/build-docs@v1
# with:
# asdf-system: docs
# # ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}