-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out anatevka
uses: actions/checkout@v2
with:
path: anatevka
- name: Initialize Lisp
run: |
sudo apt install sbcl
curl -o /tmp/quicklisp.lisp "http://beta.quicklisp.org/quicklisp.lisp"
sbcl --noinform --non-interactive \
--load /tmp/quicklisp.lisp \
--eval '(quicklisp-quickstart:install)'
WD=$(pwd | xargs dirname)
echo >> ~/.sbclrc
echo '#-quicklisp(let ((i(merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname))))(when(probe-file i)(load i)))' >> ~/.sbclrc
echo "#+quicklisp(push \"${WD}/\" ql:*local-project-directories*)" >> ~/.sbclrc
rm -f /tmp/quicklisp.lisp
- name: Run the test suite
run: |
# run the tests via the Makefile
cd anatevka
sbcl --version
sbcl --noinform --non-interactive --eval '(ql:quickload "anatevka-tests")'
make test