-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (51 loc) · 1.52 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
name: test
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, new-random ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ${{matrix.os}}
container:
image: ${{matrix.cfg.container}}
strategy:
matrix:
os: [ubuntu-latest]
cfg:
- { container: "containers.common-lisp.net/cl-docker-images/sbcl:latest", lisp: sbcl }
- { container: "containers.common-lisp.net/cl-docker-images/ccl:latest", lisp: ccl }
steps:
- name: Get validate deps
shell: bash
run: |
apt-get update
apt-get install -y cmake make g++ flex bison
- uses: actions/checkout@v3
with:
submodules: true
- name: cache validate
id: cache-validate
uses: actions/cache@v3
with:
path: jenkins/VAL
key: ${{ runner.os }}
- name: compile validate
if: steps.cache-validate.outputs.cache-hit != 'true'
shell: bash
run: |
cd jenkins/VAL
make
- name: add validate to path
run: echo "${GITHUB_WORKSPACE}/jenkins/VAL" >> $GITHUB_PATH
- name: tests
shell: bash
run: |
cd jenkins
./run-tests.sh ${{ matrix.cfg.lisp }}