2021-02-02 06:04:39 +00:00
|
|
|
name: 'Install Roswell & Qlot'
|
2021-02-02 07:16:27 +00:00
|
|
|
|
|
|
|
inputs:
|
2021-02-02 20:57:14 +00:00
|
|
|
asdf-system:
|
2021-02-02 07:26:39 +00:00
|
|
|
description: 'ASDF system to install and test'
|
2021-02-02 20:57:14 +00:00
|
|
|
required: true
|
2021-02-02 07:16:27 +00:00
|
|
|
run-tests:
|
|
|
|
description: A command to run tests
|
|
|
|
required: false
|
2021-02-02 23:55:43 +00:00
|
|
|
qlfile-template:
|
|
|
|
description: 'Mustache template for qlfile'
|
|
|
|
required: false
|
2021-02-02 16:19:10 +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 21:01:55 +00:00
|
|
|
- name: Create Qlot Environment
|
2021-02-02 21:04:52 +00:00
|
|
|
shell: bash
|
2021-02-02 21:01:55 +00:00
|
|
|
run: |
|
|
|
|
echo ::group::Create Qlot Environment
|
2021-02-02 23:55:43 +00:00
|
|
|
|
|
|
|
if [[ -n "${QLFILE_TEMPLATE}" ]]; then
|
|
|
|
echo "${QLFILE_TEMPLATE} | .github/actions/setup/templater.ros > qlfile
|
|
|
|
rm -f qlfile.lock
|
|
|
|
fi
|
|
|
|
|
2021-02-02 21:01:55 +00:00
|
|
|
qlot install
|
|
|
|
echo ::endgroup::
|
2021-02-02 23:55:43 +00:00
|
|
|
env:
|
|
|
|
QLFILE_TEMPLATE: ${{ qlfile-template }}
|
2021-02-02 22:40:39 +00:00
|
|
|
|
|
|
|
# This step will install system and
|
|
|
|
# all possible roswell scripts, if the system
|
|
|
|
# has them in the roswell/ subdirectory:
|
|
|
|
- name: Install ASDF System
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ::group::Install ASDF System
|
|
|
|
qlot exec ros install ${{ inputs.asdf-system }}
|
|
|
|
echo ::endgroup::
|
2021-02-02 21:01:55 +00:00
|
|
|
|
2021-02-02 20:57:14 +00:00
|
|
|
- name: Run Tests
|
|
|
|
shell: bash
|
2021-02-02 16:33:25 +00:00
|
|
|
run: |
|
2021-02-02 20:57:14 +00:00
|
|
|
${{ github.action_path }}/run-tests.ros ${{ inputs.asdf-system }} <<EOF
|
|
|
|
${{ inputs.run-tests }}
|
|
|
|
EOF
|
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
|