aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..01926c44
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,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 \ No newline at end of file