Skip to content

Commit

Permalink
Use portable PATHNAME functions
Browse files Browse the repository at this point in the history
  • Loading branch information
foretspaisibles committed Oct 2, 2023
1 parent 6bff31f commit f1ec008
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ outputs:
description: >-
The installation directory for the QuickLisp distribution.
quicklisp-local-projects:
value: '${{ steps.setup-quicklisp.outputs.quicklisp-home }}/local-projects'
value: '${{ steps.setup-quicklisp.outputs.quicklisp-local-projects }}'
description: >-
The local project directory for the QuickLisp distribution.
runs:
Expand Down
15 changes: 11 additions & 4 deletions setup-quicklisp.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@

(defparameter *quicklisp-home*
(or
(uiop:getenv "QUICKLISP_HOME")
(uiop:getenv-absolute-directory "QUICKLISP_HOME")
(uiop:merge-pathnames*
(merge-pathnames
#p"quicklisp/"
(user-homedir-pathname)))
(make-pathname :directory (list :relative "quicklisp"))
(user-homedir-pathname))))
"Home directory for QuickLisp.")

(defparameter *quicklisp-register-local-projects*
Expand Down Expand Up @@ -120,7 +121,13 @@ to job output."
(write-detail
:name "QuickLisp Home"
:key "quicklisp-home"
:value *quicklisp-home*))
:value *quicklisp-home*)
(write-detail
:name "QuickLisp Local Projects"
:key "quicklisp-local-projects"
:value (uiop:merge-pathnames*
(make-pathname :directory (list :relative "local-projects"))
*quicklisp-home*)))

(progn
(install-quicklisp)
Expand Down

0 comments on commit f1ec008

Please sign in to comment.