-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (54 loc) · 1.67 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
name: ci
# When to trigger this workflow
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
# run the job on every combination of "os" above
runs-on: ${{ matrix.os }}
steps:
- name: "Windows: Install sbcl"
if: matrix.os == 'windows-latest'
run: |
echo "C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $env:GITHUB_PATH
cat $env:GITHUB_PATH
echo "SBCL_HOME=C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $env:GITHUB_ENV
cat $env:GITHUB_ENV
curl -L http://downloads.sourceforge.net/project/sbcl/sbcl/2.0.0/sbcl-2.0.0-x86-64-windows-binary.msi --output sbcl.msi
msiexec /qn /i sbcl.msi
- name: "Ubuntu: Install sbcl"
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y sbcl
- name: "MacOs: Install sbcl"
if: matrix.os == 'macos-latest'
run: |
brew install sbcl
- name: "Print sbcl version"
run: sbcl --version
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup quicklisp
run: |
curl -kLO https://beta.quicklisp.org/quicklisp.lisp
printenv | sort
sbcl --noinform --non-interactive --load scripts/setup-quicklisp.lisp
- name: Tests
shell: bash
run: scripts/test.sh
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: docs
path: docs/