Move to 40ants-doc.
This commit is contained in:
parent
8c96f9bc39
commit
b7fa0274d2
6 changed files with 85 additions and 91 deletions
.github/workflows
101
.github/workflows/docs.yml
vendored
101
.github/workflows/docs.yml
vendored
|
@ -1,55 +1,46 @@
|
|||
name: 'Docs'
|
||||
|
||||
on:
|
||||
# This will run tests on pushes
|
||||
# to master branch and every monday:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'master'
|
||||
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 to Make Cache Restoring Possible
|
||||
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
|
||||
- name: Get Current Month
|
||||
id: current-month
|
||||
run: |
|
||||
echo "::set-output name=value::$(date -u "+%Y-%m")"
|
||||
- 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: "${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('qlfile.lock') }}"
|
||||
- name: Restore Path To Cached Files
|
||||
run: |
|
||||
echo $HOME/.roswell/bin >> $GITHUB_PATH
|
||||
echo .qlot/bin >> $GITHUB_PATH
|
||||
if: steps.cache.outputs.cache-hit == 'true'
|
||||
- uses: 40ants/setup-lisp@v1
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
- uses: 40ants/build-docs@v1
|
||||
with:
|
||||
asdf-system: docs
|
||||
# ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}
|
||||
{
|
||||
"name": "DOCS",
|
||||
"on": {
|
||||
"push": {
|
||||
"branches": [
|
||||
"master"
|
||||
]
|
||||
},
|
||||
"schedule": [
|
||||
{
|
||||
"cron": "0 10 * * 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"jobs": {
|
||||
"build-docs": {
|
||||
"runs-on": "ubuntu-latest",
|
||||
"env": {
|
||||
"OS": "ubuntu-latest",
|
||||
"QUICKLISP_DIST": "quicklisp",
|
||||
"LISP": "sbcl-bin"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"name": "Checkout Code",
|
||||
"uses": "actions/checkout@v1"
|
||||
},
|
||||
{
|
||||
"name": "Setup Common Lisp Environment",
|
||||
"uses": "40ants/setup-lisp@v1",
|
||||
"with": {
|
||||
"asdf-system": "docs"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Build Docs",
|
||||
"uses": "40ants/build-docs@v1",
|
||||
"with": {
|
||||
"asdf-system": "docs",
|
||||
"error-on-warnings": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue