From b1a3efb99ffc7f5d08b873cf244713126c966c9a Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Tue, 13 Sep 2022 10:17:25 -0700 Subject: Enable basic CI build (#26) --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml 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 -- cgit v1.2.3