feat: add github integration #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
gen-website: | |
name: generating website | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cache .roswell | |
id: cache-dot-roswell | |
uses: actions/cache@v1 | |
with: | |
path: ~/.roswell | |
key: ${{ runner.os }}-dot-roswell-sbcl-${{ hashFiles('**/*.asd') }} | |
restore-keys: | | |
${{ runner.os }}-dot-roswell-sbcl- | |
${{ runner.os }}-dot-roswell- | |
- name: install roswell | |
# always run install, since it does some global installs and setup that isn't cached | |
env: | |
LISP: sbcl | |
run: curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh -x | |
- name: run lisp | |
continue-on-error: true | |
run: | | |
ros -e '(format t "~a:~a on ~a~%...~%~%" (lisp-implementation-type) (lisp-implementation-version) (machine-type))' | |
ros -e '(format t " fixnum bits:~a~%" (integer-length most-positive-fixnum))' | |
ros -e "(ql:quickload 'trivial-features)" -e '(format t "features = ~s~%" *features*)' | |
ros -e "(ql:quickload | |
'cl-interpol | |
'spinneret | |
'spinneret/cl-markdown | |
'local-time | |
'fiveam)" -e '(format t "features = ~s~%" *features*)' | |
- name: update ql dist if we have one cached | |
run: ros -e "(ql:update-all-dists :prompt nil)" | |
- name: load code and run tests | |
run: | | |
ros -e '(handler-bind (#+asdf3.2(asdf:bad-SYSTEM-NAME (function MUFFLE-WARNING))) (handler-case (ql:quickload :cl-web-churner) (error (a) (format t "caught error ~s~%~a~%" a a) (uiop:quit 123))))' -e '(ci-example.test:run-tests-for-ci)' | |