Feat: support asdf:test-system #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/3b/ci-example | |
# Copyright (c) 2020 3b | |
# Copyright (c) 2021 Grim Schjetne | |
# This source code is licensed under the MIT license found in the | |
# COPYING file in the root directory of this source tree. | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push for any branch, and | |
# pull requests to master | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: [ master ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
name: ${{ matrix.lisp }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
lisp: [ sbcl-bin ] | |
os: [ ubuntu-latest ] | |
# run the job on every combination of "lisp" and "os" above | |
runs-on: ${{ matrix.os }} | |
steps: | |
# tell git not to convert line endings | |
# change roswell install dir and add it to path | |
- name: windows specific settings | |
if: matrix.os == 'windows-latest' | |
run: | | |
git config --global core.autocrlf false | |
echo "ROSWELL_INSTALL_DIR=$HOME/ros" >> $GITHUB_ENV | |
echo "$HOME/ros/bin" >> $GITHUB_PATH | |
# Check out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: cache .roswell | |
id: cache-dot-roswell | |
uses: actions/cache@v1 | |
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 | |
# always run install, since it does some global installs and setup that isn't cached | |
env: | |
LISP: ${{ matrix.lisp }} | |
run: curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh -x | |
- 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: update ql dist if we have one cached | |
shell: bash | |
run: ros -e "(ql:update-all-dists :prompt nil)" | |
- name: load code and run tests | |
shell: bash | |
run: | | |
ros -e "(ql:quickload 'json-mop-tests)" -e "(unless (it.bese.fiveam:run-all-tests) (uiop:quit 1))" |