aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <GabrielDosReis@users.noreply.github.com>2022-09-17 18:13:52 -0700
committerGitHub <noreply@github.com>2022-09-17 18:13:52 -0700
commitbe9640c48094f0a62d0ec09296d8ef33f0a92883 (patch)
treed6cf781bbe26eba3a9b504cdaf2c0aa0d9ac8531
parentdbe239cd6eee022d1b8dccb9d8a1368acf52a8d7 (diff)
downloadopen-axiom-be9640c48094f0a62d0ec09296d8ef33f0a92883.tar.gz
Gdr/enable basic ci (#28)
* Enable basic CI build * Fix indentation thinko * Update main.yml * Update main.yml * Update main.yml * Really install the advertised compilers * install libxpm-dev * Do not rerun configure * Disable maintainer mode * Update main.yml
-rw-r--r--.github/workflows/main.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..c55f4cc0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,37 @@
+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 -y
+ sudo apt-get install build-essential ${{ matrix.cxx }} ${{ matrix.lisp }} libxpm-dev
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
+
+ - name: Configure & Build & Test
+ run: |
+ mkdir ${{ matrix.lisp }}-build && cd ${{ matrix.lisp }}-build
+ touch ../configure && sleep 1
+ ../configure --disable-maintainer-mode --with-lisp=${{ matrix.lisp }}
+ time make
+ time make check
+