paku
e03814bc97
All checks were successful
CI / test (sbcl-bin) (push) Successful in 15s
Reviewed-on: http://code.skyizwhite.dev/paku/hsx/pulls/1 Co-authored-by: paku <paku@skyizwhite.dev> Co-committed-by: paku <paku@skyizwhite.dev>
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
name: 'CI'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
strategy:
|
|
matrix:
|
|
lisp:
|
|
- sbcl-bin
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Restore cache
|
|
id: restore-cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
~/.quicklisp-client-fix
|
|
~/.roswell
|
|
/usr/local/bin/ros
|
|
/usr/local/etc/roswell/
|
|
qlfile
|
|
qlfile.lock
|
|
.qlot
|
|
~/.cache/common-lisp/
|
|
key: roswell-${{ runner.os }}-${{ matrix.lisp }}-${{ hashFiles('qlfile', 'qlfile.lock', '*.asd', '.forgejo/workflows/ci.yml') }}
|
|
|
|
- name: Install Roswell
|
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
|
env:
|
|
LISP: ${{ matrix.lisp }}
|
|
run: |
|
|
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
|
|
|
|
- name: Install Qlot
|
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
ros install fukamachi/qlot
|
|
|
|
- name: Install dependencies
|
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
PATH="~/.roswell/bin:$PATH"
|
|
qlot install
|
|
qlot exec ros install hsx
|
|
|
|
- name: Save cache
|
|
id: save-cache
|
|
uses: actions/cache/save@v4
|
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
|
with:
|
|
path: |
|
|
~/.quicklisp-client-fix
|
|
~/.roswell
|
|
/usr/local/bin/ros
|
|
/usr/local/etc/roswell/
|
|
qlfile
|
|
qlfile.lock
|
|
.qlot
|
|
~/.cache/common-lisp/
|
|
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
|
|
|
|
- name: Run tests
|
|
run: .qlot/bin/rove hsx.asd
|