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:46:49 +00:00
|
|
|
default: 'The Template'
|
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 07:46:49 +00:00
|
|
|
echo "Current dir:"
|
|
|
|
pwd
|
|
|
|
|
|
|
|
echo "Environment Variables:"
|
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: |
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::group::Install Roswell
|
2021-02-02 06:19:57 +00:00
|
|
|
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
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::endgroup::
|
2021-02-02 06:19:57 +00:00
|
|
|
- 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: |
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::group::Upgrade ASDF
|
2021-02-02 06:19:57 +00:00
|
|
|
ros install asdf
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::endgroup::
|
2021-02-02 06:19:57 +00:00
|
|
|
- name: Install Qlot
|
2021-02-02 06:22:18 +00:00
|
|
|
shell: bash
|
2021-02-02 06:19:57 +00:00
|
|
|
run: |
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::group::Install Qlot
|
2021-02-02 06:19:57 +00:00
|
|
|
ros install qlot
|
|
|
|
echo .qlot/bin >> $GITHUB_PATH
|
2021-02-02 07:46:49 +00:00
|
|
|
echo ::endgroup::
|
2021-02-02 07:16:27 +00:00
|
|
|
|
2021-02-02 08:43:43 +00:00
|
|
|
- name: Run a custom Roswell Script
|
2021-02-02 08:00:54 +00:00
|
|
|
shell: ros -Q -- {0} "$@"
|
2021-02-02 07:53:35 +00:00
|
|
|
run: |
|
|
|
|
(progn
|
|
|
|
(ros:ensure-asdf)
|
|
|
|
#+quicklisp
|
|
|
|
(ql:quickload '() :silent t))
|
|
|
|
|
2021-02-02 08:24:35 +00:00
|
|
|
(defun main (args)
|
|
|
|
(declare (ignore args))
|
2021-02-02 08:43:43 +00:00
|
|
|
(format t "::group::Custom Roswell Script~%")
|
2021-02-02 08:09:28 +00:00
|
|
|
(format t "Lisp: ~A ~A~%ASDF: ~A~%"
|
|
|
|
(lisp-implementation-version)
|
|
|
|
(lisp-implementation-type)
|
2021-02-02 08:43:43 +00:00
|
|
|
(asdf:asdf-version))
|
|
|
|
(format t "::endgroup::~%"))
|
2021-02-02 07:53:35 +00:00
|
|
|
|
2021-02-02 08:09:28 +00:00
|
|
|
# - name: Test
|
|
|
|
# shell: bash
|
|
|
|
# run: |
|
|
|
|
# echo ${{ inputs.qlfile-template }} > qlfile
|
2021-02-02 07:46:49 +00:00
|
|
|
# - name: Install Dependencies
|
|
|
|
# shell: bash
|
|
|
|
# run: |
|
|
|
|
# if [[ -e qlfile ]]; then
|
|
|
|
# rm -fr qlfile.lock
|
|
|
|
# else:
|
|
|
|
# if [[ "${QUICKLISP_DIST}" == 'ultralisp' ]]; then
|
|
|
|
# echo dist ultralisp http://dist.ultralisp.org/ >> qlfile
|
|
|
|
# fi
|
|
|
|
# fi
|
|
|
|
# qlot install
|
|
|
|
# - name: Install System
|
|
|
|
# shell: bash
|
|
|
|
# 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:46:49 +00:00
|
|
|
# qlot exec ros install cl-info
|
|
|
|
# - name: Install System
|
|
|
|
# shell: bash
|
|
|
|
# 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:46:49 +00:00
|
|
|
# qlot exec ros install cl-info
|