-
-
Notifications
You must be signed in to change notification settings - Fork 423
51 lines (43 loc) · 1.49 KB
/
tests.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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [ opened, synchronize, closed ]
jobs:
test:
name: ${{matrix.lisp}} on ${{matrix.os}}
strategy:
matrix:
lisp: [sbcl-bin, ccl-bin]
lisp-flags: [dynamic-space-size=3072]
renderer: [gi-gtk]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
show-progress: 'false'
submodules: 'true'
- name: Register submodules in ASDF
run: |
mkdir -p ~/.config/common-lisp/source-registry.conf.d/
echo "(:tree \"$PWD\")" > ~/.config/common-lisp/source-registry.conf.d/asdf.conf
echo "(:tree \"$PWD/_build\")" >> ~/.config/common-lisp/source-registry.conf.d/asdf.conf
- name: Install Roswell
env:
LISP: ${{matrix.lisp}}
run: curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh -x
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y libfixposix-dev libwebkit2gtk-4.1-0 glib-networking gsettings-desktop-schemas
- name: Load Nyxt
run: |
ros ${{matrix.lisp-flags}} -e '(handler-case (asdf:load-system :nyxt/${{matrix.renderer}}-application) (error (c) (format t "Error: ~s~%~a~%" c c) (uiop:quit 1)))'
- name: Run tests
env:
NASDF_TESTS_QUIT_ON_FAIL: yes
run: |
ros ${{matrix.lisp-flags}} -e '(asdf:test-system :nyxt)'