Running custom lisp code as a Action sstep.

This commit is contained in:
Alexander Artemenko 2021-02-02 19:19:10 +03:00
parent 9da96990aa
commit 13c6cce095
2 changed files with 39 additions and 14 deletions

View file

@ -15,6 +15,10 @@ inputs:
default: | default: |
qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit
custom-code:
required: false
runs: runs:
using: composite using: composite
steps: steps:
@ -57,22 +61,27 @@ runs:
echo .qlot/bin >> $GITHUB_PATH echo .qlot/bin >> $GITHUB_PATH
echo ::endgroup:: echo ::endgroup::
# - name: Run a custom Roswell Script
# shell: ros -Q -- {0} "$@"
# run: |
# (progn
# (ros:ensure-asdf)
# #+quicklisp
# (ql:quickload '() :silent t))
# (defun main (args)
# (declare (ignore args))
# (format t "::group::Custom Roswell Script~%")
# (format t "Lisp: ~A ~A~%ASDF: ~A~%"
# (lisp-implementation-version)
# (lisp-implementation-type)
# (asdf:asdf-version))
# (format t "::endgroup::~%"))
- name: Run a custom Roswell Script - name: Run a custom Roswell Script
shell: ros -Q -- {0} "$@" shell: ros -Q -- {0} "$@"
run: | run: ${{ inputs.custom-code }}
(progn if: ${{ inputs.custom-code }}
(ros:ensure-asdf)
#+quicklisp
(ql:quickload '() :silent t))
(defun main (args)
(declare (ignore args))
(format t "::group::Custom Roswell Script~%")
(format t "Lisp: ~A ~A~%ASDF: ~A~%"
(lisp-implementation-version)
(lisp-implementation-type)
(asdf:asdf-version))
(format t "::endgroup::~%"))
# - name: Test # - name: Test
# shell: bash # shell: bash

View file

@ -64,6 +64,22 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: 40ants/cl-info/.github/actions/setup@custom-action - uses: 40ants/cl-info/.github/actions/setup@custom-action
with:
- custom-code: |
(progn
(ros:ensure-asdf)
#+quicklisp
(ql:quickload '() :silent t))
(defun main (args)
(declare (ignore args))
(format t "::group::Custom Roswell Script~%")
(format t "Lisp: ~A ~A~%ASDF: ~A~%"
(lisp-implementation-version)
(lisp-implementation-type)
(asdf:asdf-version))
(format t "::endgroup::~%"))
# - name: Start SSH session # - name: Start SSH session
# uses: luchihoratiu/debug-via-ssh@main # uses: luchihoratiu/debug-via-ssh@main
# with: # with: