-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (70 loc) · 2.33 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
name: CI
on: [push, pull_request]
env:
GITHUB_WORKSPACE: $HOME/common-lisp/serapeum
jobs:
test_ubuntu:
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
lisp: [sbcl-bin]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Install SBCL
run: |
sudo apt update && sudo apt install -y wget sbcl
- name: Update ASDF
run: |
mkdir ~/common-lisp/ && cd ~/common-lisp/
pwd
wget https://common-lisp.net/project/asdf/archives/asdf.tar.gz
tar -xf asdf.tar.gz
sbcl --noinform --eval '(require :asdf)' --eval '(asdf:upgrade-asdf)' --eval '(princ (asdf:asdf-version))' --quit
- name: Install Quicklisp
run: |
cd
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl --load 'quicklisp.lisp' --eval '(quicklisp-quickstart:install)' --eval '(let ((ql-util::*do-not-prompt* t)) (ql:add-to-init-file))'
- name: Build Kiln
run: |
export PATH=$PATH:$HOME/.local/bin
mkdir -p ~/.local/bin
make && make install
- name: Test Kiln
run: |
export CL_SOURCE_REGISTRY="$(pwd):"
kiln --debug self-test
test_alpine:
name: sbcl_alpine
runs-on: ubuntu-latest
container: alpine:latest
steps:
- uses: actions/checkout@v1
- name: Install SBCL
run: |
apk add sbcl
- name: Update ASDF
run: |
mkdir ~/common-lisp/ && cd ~/common-lisp/
pwd
wget https://common-lisp.net/project/asdf/archives/asdf.tar.gz
tar -xf asdf.tar.gz
sbcl --noinform --eval '(require :asdf)' --eval '(asdf:upgrade-asdf)' --eval '(princ (asdf:asdf-version))' --quit
- name: Install Quicklisp
run: |
cd
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl --load 'quicklisp.lisp' --eval '(quicklisp-quickstart:install)' --eval '(let ((ql-util::*do-not-prompt* t)) (ql:add-to-init-file))'
- name: Build Kiln
run: |
export PATH=$PATH:$HOME/.local/bin
mkdir -p ~/.local/bin
./build.sh
- name: Test Kiln
run: |
export CL_SOURCE_REGISTRY="$(pwd):"
export PATH="$(pwd):$PATH"
./kiln --debug self-test