aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 01926c44b9ea112b9cf27d5284bfdcd6a2cc9dd7 (plain)
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
name: Build & Test

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build-and-test:
    name: ${{ matrix.os }} -x- $${ matrix.cxx }} -x- $${{ matrix.lisp }}
    runs-on: $${{ matrix.os }}
    strategy:
      fail-fast: false
    matrix:
      os: [ ubuntu-latest ]
      cxx: [ g++-11 ]
      lisp: [ sbcl ]

    steps:
      - uses: actions/checkout@v2

      - name: Install Lisp and C++ compilers
        if: matrix.os == 'ubuntu-latest'
        run: |
          sudo apt-get update && sudo apt upgrade
          sudo apt-get install build-essential $${ matrix.lisp }}

      - name: Configure & Build & Test
        run: |
          mkdir $${ matrix.lisp }}-build && chdir $${ matrix.lisp }}-build
          ../configure --with-lisp=$${ matrix.lisp }}
          time make
          time make check