-
-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (55 loc) · 1.7 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
name: ci
# Controls when the action will run. Triggers the workflow on push for any branch, and
# pull requests to master
on:
push:
branches: [ master ]
pull_request:
defaults:
run:
shell: bash
jobs:
test:
name: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
# run the job on every combination of "os" above
runs-on: ${{ matrix.os }}
steps:
# tell git not to convert line endings
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
git config --global core.autocrlf false
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install sbcl
- name: Install MacOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew install clozure-cl sbcl
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Quicklisp and setup source registry
run: |
curl -kLO https://beta.quicklisp.org/quicklisp.lisp
mkdir -p $HOME/.config/common-lisp
echo "(:source-registry (:tree (\"$PWD\")) :inherit-configuration)" >$HOME/.config/common-lisp/source-registry.conf
- name: Install Quicklisp for SBCL
run: |
sbcl --non-interactive --load scripts/install.lisp
- name: Install Quicklisp for CCL
if: matrix.os == 'macos-latest'
run: |
ccl64 --batch --load scripts/install.lisp
- name: Run SBCL tests
run: |
sbcl --non-interactive --eval "(asdf:test-system :shasht)"
- name: Run CCL tests
if: matrix.os == 'macos-latest'
run: |
ccl64 --batch --eval "(asdf:test-system :shasht)"