Move build system to GitHub actions (#2)

* Add initial actions build setup, remove travis
* Prepare windows builds
This commit is contained in:
2023-05-19 00:24:52 +02:00
committed by GitHub
parent fb940e63b8
commit fd164c918a
2 changed files with 47 additions and 26 deletions

47
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,47 @@
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
name: Build ${{ matrix.lisp }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
lisp: [ sbcl-bin, allegro ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Windows specific settings
if: matrix.os == 'windows-latest'
run: |
git config --global core.autocrlf false
echo "ROSWELL_INSTALL_DIR=~/ros" >> "$GITHUB_ENV"
echo "~/ros/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: cache .roswell
id: cache-dot-roswell
uses: actions/cache@v3
with:
path: ~/.roswell
key: ${{ runner.os }}-dot-roswell-${{ matrix.lisp }}-${{ hashFiles('**/*.asd') }}
restore-keys: |
${{ runner.os }}-dot-roswell-${{ matrix.lisp }}-
${{ runner.os }}-dot-roswell-
- name: install roswell
shell: bash
env:
LISP: ${{ matrix.lisp }}
run: curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: run lisp
continue-on-error: true
shell: bash
run: |
ros -e '(format t "~a:~a on ~a~%...~%~%" (lisp-implementation-type) (lisp-implementation-version) (machine-type))'
ros -e '(format t " fixnum bits:~a~%" (integer-length most-positive-fixnum))'
ros -e "(ql:quickload 'trivial-features)" -e '(format t "features = ~s~%" *features*)'
- name: build deflate
shell: bash
run: |
ros -e '(ql:quickload "deflate")'

View File

@ -1,26 +0,0 @@
language: lisp
sudo: required
env:
matrix:
- LISP=abcl
- LISP=allegro
- LISP=sbcl
- LISP=sbcl32
- LISP=ccl
- LISP=ccl32
- LISP=clisp
- LISP=clisp32
- LISP=cmucl
- LISP=ecl
matrix:
allow_failures:
- env: LISP=ccl32
- env: LISP=cmucl
install:
- curl -L https://github.com/luismbo/cl-travis/raw/master/install.sh | sh
script:
- cl -e '(ql:quickload "deflate")'