Checking output of the input into a file.

This commit is contained in:
Alexander Artemenko 2021-02-02 10:46:49 +03:00
parent bd260e976c
commit 5ff4cbc2b5
2 changed files with 51 additions and 37 deletions

View file

@ -4,7 +4,7 @@ inputs:
qlfile-template: qlfile-template:
description: 'Jinja template for qlfile' description: 'Jinja template for qlfile'
required: false required: false
default: 'no temlplate' default: 'The Template'
lisp-system: lisp-system:
description: 'ASDF system to install and test' description: 'ASDF system to install and test'
required: false required: false
@ -22,11 +22,16 @@ runs:
shell: bash shell: bash
run: | run: |
echo ::group::Environment echo ::group::Environment
echo "Current dir:"
pwd
echo "Environment Variables:"
env | sort -u env | sort -u
echo ::endgroup:: echo ::endgroup::
- name: Install Roswell - name: Install Roswell
shell: bash shell: bash
run: | run: |
echo ::group::Install Roswell
if [[ "$OS" == "ubuntu-latest" ]]; then if [[ "$OS" == "ubuntu-latest" ]]; then
sudo apt-get -y install git build-essential automake libcurl4-openssl-dev sudo apt-get -y install git build-essential automake libcurl4-openssl-dev
fi fi
@ -37,40 +42,49 @@ runs:
curl -L https://raw.githubusercontent.com/svetlyak40wt/roswell/patches/scripts/install-for-ci.sh | sh curl -L https://raw.githubusercontent.com/svetlyak40wt/roswell/patches/scripts/install-for-ci.sh | sh
echo $HOME/.roswell/bin >> $GITHUB_PATH echo $HOME/.roswell/bin >> $GITHUB_PATH
echo ::endgroup::
- name: Upgrade ASDF to the Latest Version - name: Upgrade ASDF to the Latest Version
shell: bash shell: bash
run: | run: |
echo ::group::Upgrade ASDF
ros install asdf ros install asdf
echo ::endgroup::
- name: Install Qlot - name: Install Qlot
shell: bash shell: bash
run: | run: |
echo ::group::Install Qlot
ros install qlot ros install qlot
echo .qlot/bin >> $GITHUB_PATH echo .qlot/bin >> $GITHUB_PATH
echo ::endgroup::
- name: Install Dependencies - name: Test
shell: bash shell: bash
run: | run: |
if [[ -e qlfile ]]; then echo ${{ inputs.qlfile-template }} > qlfile
rm -fr qlfile.lock # - name: Install Dependencies
else: # shell: bash
if [[ "${QUICKLISP_DIST}" == 'ultralisp' ]]; then # run: |
echo dist ultralisp http://dist.ultralisp.org/ >> qlfile # if [[ -e qlfile ]]; then
fi # rm -fr qlfile.lock
fi # else:
qlot install # if [[ "${QUICKLISP_DIST}" == 'ultralisp' ]]; then
- name: Install System # echo dist ultralisp http://dist.ultralisp.org/ >> qlfile
shell: bash # fi
run: | # fi
if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then # qlot install
qlot exec ros install 40ants/defmain # - name: Install System
fi # shell: bash
# run: |
# if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then
# qlot exec ros install 40ants/defmain
# fi
qlot exec ros install cl-info # qlot exec ros install cl-info
- name: Install System # - name: Install System
shell: bash # shell: bash
run: | # run: |
if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then # if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then
qlot exec ros install 40ants/defmain # qlot exec ros install 40ants/defmain
fi # fi
qlot exec ros install cl-info # qlot exec ros install cl-info

View file

@ -63,6 +63,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: 40ants/cl-info/.github/actions/setup@custom-action
- name: Start SSH session - name: Start SSH session
uses: luchihoratiu/debug-via-ssh@main uses: luchihoratiu/debug-via-ssh@main
with: with:
@ -70,17 +71,16 @@ jobs:
NGROK_REGION: eu NGROK_REGION: eu
SSH_PASS: ${{ secrets.SSH_PASS }} SSH_PASS: ${{ secrets.SSH_PASS }}
- uses: 40ants/cl-info/.github/actions/setup@custom-action # - name: Install System
- name: Install System # run: |
run: | # if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then
if [[ "${QUICKLISP_DIST}" == 'quicklisp' ]]; then # qlot exec ros install 40ants/defmain
qlot exec ros install 40ants/defmain # fi
fi
qlot exec ros install cl-info # qlot exec ros install cl-info
- name: Run Tests # - name: Run Tests
run: | # run: |
set -x # set -x
qlot exec cl-info --help # qlot exec cl-info --help
qlot exec cl-info --version # qlot exec cl-info --version
qlot exec cl-info cl-info # qlot exec cl-info cl-info