-
Notifications
You must be signed in to change notification settings - Fork 116
57 lines (57 loc) · 1.92 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # if one fails, do not cancel the other
matrix:
gambit-version: ['v4.9.3', 'master']
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get -y install openssl libssl-dev sqlite3 libsqlite3-dev
- name: Cache gambit
id: cache-gambit
uses: actions/cache@v2
with:
path: $HOME/gambit
key: ${{ runner.os }}-gambit-${{ matrix.gambit-version }}
- uses: actions/checkout@v2
with:
repository: 'gambit/gambit'
ref: ${{ matrix.gambit-version }}
path: 'gambit'
if: steps.cache-gambit.outputs.cache-hit != 'true'
- name: Build and install Gambit
if: steps.cache-gambit.outputs.cache-hit != 'true'
run: |
pushd gambit
./configure --prefix=$HOME/gambit --enable-single-host
make
make install
popd
- name: Setup links to gambit executables
run: |
sudo ln -sf $HOME/gambit/bin/gsi /bin/gsi
sudo ln -sf $HOME/gambit/bin/gsi-script /bin/gsi-script
sudo ln -sf $HOME/gambit/bin/gsc /bin/gsc
- name: Setup build
run: echo "(define (gerbil-version-string) \"git-$(git rev-parse --short=8 HEAD)\")" > src/gerbil/runtime/gx-version.scm
- name: Build gxi
run: ./src/build.sh gxi
- name: Build stage0
run: ./src/build.sh stage0
- name: Build stage1 final
run: ./src/build.sh stage1 final
- name: Build stdlib
run: ./src/build.sh stdlib
- name: Build lang
run: ./src/build.sh lang
- name: Build tools
run: ./src/build.sh tools
- name: Run tests
run: |
export GERBIL_HOME=${GITHUB_WORKSPACE}
export PATH=${GITHUB_WORKSPACE}/bin:$PATH
./src/std/run-tests.ss