Running custom lisp code as a Action sstep.
This commit is contained in:
parent
9da96990aa
commit
13c6cce095
2 changed files with 39 additions and 14 deletions
37
.github/actions/setup/action.yml
vendored
37
.github/actions/setup/action.yml
vendored
|
@ -15,6 +15,10 @@ inputs:
|
|||
default: |
|
||||
qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit
|
||||
|
||||
custom-code:
|
||||
required: false
|
||||
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
|
@ -57,22 +61,27 @@ runs:
|
|||
echo .qlot/bin >> $GITHUB_PATH
|
||||
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
|
||||
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::~%"))
|
||||
run: ${{ inputs.custom-code }}
|
||||
if: ${{ inputs.custom-code }}
|
||||
|
||||
# - name: Test
|
||||
# shell: bash
|
||||
|
|
16
.github/workflows/install.yml
vendored
16
.github/workflows/install.yml
vendored
|
@ -64,6 +64,22 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- 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
|
||||
# uses: luchihoratiu/debug-via-ssh@main
|
||||
# with:
|
||||
|
|
Loading…
Reference in a new issue