Fix order of shared objects in Unix. #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install -y sbcl libgirepository1.0-dev libgtk-3-dev xvfb | |
- name: Install Quicklisp | |
run: | | |
curl -O https://beta.quicklisp.org/quicklisp.lisp && | |
sbcl \ | |
--load quicklisp.lisp \ | |
--eval '(quicklisp-quickstart:install)' \ | |
--quit | |
echo '(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" | |
(user-homedir-pathname)))) | |
(when (probe-file quicklisp-init) | |
(load quicklisp-init)))' > $HOME/.sbclrc | |
- name: Add system to Quicklisp catalog | |
run: | | |
ln -s $(pwd) ~/quicklisp/local-projects/cl-gobject-introspection && | |
rm -f ~/quicklisp/local-projects/system-index.txt | |
- name: Run tests | |
run: | | |
sbcl \ | |
--eval '(require :sb-cover)' \ | |
--eval '(declaim (optimize sb-cover:store-coverage-data))' \ | |
--eval '(ql:quickload :fiveam)' \ | |
--eval '(ql:quickload :cl-gobject-introspection)' \ | |
--eval '(setf fiveam:*on-error* :backtrace fiveam:*on-failure* :backtrace)' \ | |
--eval '(setf *debugger-hook* (lambda (c h) (declare (ignore h)) (princ c) (uiop:quit -1)))' \ | |
--eval '(asdf:test-system :cl-gobject-introspection)' \ | |
--eval '(sb-cover:report "coverage/" :if-matches (lambda (f) (eq 0 (search (namestring (asdf:system-relative-pathname :cl-gobject-introspection "src/")) f))))' \ | |
--quit | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: coverage | |
retention-days: 14 | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
await require('./.github/coverage-report.js')({github, context, coveragePath: "./coverage"}); |