setup-lisp/.github/actions/setup/action.yml

77 lines
2 KiB
YAML
Raw Normal View History

2021-02-02 06:04:39 +00:00
name: 'Install Roswell & Qlot'
2021-02-02 07:16:27 +00:00
inputs:
qlfile-template:
description: 'Jinja template for qlfile'
required: false
2021-02-02 07:23:23 +00:00
default: 'no temlplate'
2021-02-02 07:26:39 +00:00
lisp-system:
description: 'ASDF system to install and test'
required: false
default: ''
2021-02-02 07:16:27 +00:00
run-tests:
description: A command to run tests
required: false
default: |
2021-02-02 07:26:39 +00:00
qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit
2021-02-02 07:16:27 +00:00
2021-02-02 06:04:39 +00:00
runs:
2021-02-02 06:19:57 +00:00
using: composite
steps:
- name: Current Env
2021-02-02 06:22:18 +00:00
shell: bash
2021-02-02 06:19:57 +00:00
run: |
2021-02-02 07:16:27 +00:00
echo ::group::Environment
2021-02-02 06:19:57 +00:00
env | sort -u
2021-02-02 07:16:27 +00:00
echo ::endgroup::
2021-02-02 06:19:57 +00:00
- name: Install Roswell
2021-02-02 06:23:15 +00:00
shell: bash
2021-02-02 06:19:57 +00:00
run: |
if [[ "$OS" == "ubuntu-latest" ]]; then
sudo apt-get -y install git build-essential automake libcurl4-openssl-dev
fi
if [[ "$OS" == "macos-latest" ]]; then
brew install automake autoconf curl
fi
curl -L https://raw.githubusercontent.com/svetlyak40wt/roswell/patches/scripts/install-for-ci.sh | sh
echo $HOME/.roswell/bin >> $GITHUB_PATH
- name: Upgrade ASDF to the Latest Version
2021-02-02 06:22:18 +00:00
shell: bash
2021-02-02 06:19:57 +00:00
run: |
ros install asdf
- name: Install Qlot
2021-02-02 06:22:18 +00:00
shell: bash
2021-02-02 06:19:57 +00:00
run: |
ros install qlot
echo .qlot/bin >> $GITHUB_PATH
2021-02-02 07:16:27 +00:00
2021-02-02 06:19:57 +00:00
- name: Install Dependencies
2021-02-02 06:22:18 +00:00
shell: bash
2021-02-02 06:19:57 +00:00
run: |
2021-02-02 07:16:27 +00:00
if [[ -e qlfile ]]; then
rm -fr qlfile.lock
else:
if [[ "${QUICKLISP_DIST}" == 'ultralisp' ]]; then
2021-02-02 06:19:57 +00:00
echo dist ultralisp http://dist.ultralisp.org/ >> qlfile
2021-02-02 07:16:27 +00:00
fi
2021-02-02 06:19:57 +00:00
fi
2021-02-02 07:16:27 +00:00
qlot install
2021-02-02 07:23:23 +00:00
- name: Install System
2021-02-02 07:24:39 +00:00
shell: bash
2021-02-02 07:23:23 +00:00
run: |
if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then
qlot exec ros install 40ants/defmain
fi
2021-02-02 07:16:27 +00:00
2021-02-02 07:23:23 +00:00
qlot exec ros install cl-info
- name: Install System
2021-02-02 07:24:39 +00:00
shell: bash
2021-02-02 07:23:23 +00:00
run: |
if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then
qlot exec ros install 40ants/defmain
fi
2021-02-02 07:16:27 +00:00
2021-02-02 07:23:23 +00:00
qlot exec ros install cl-info