Use setup-lisp #1

Closed
paku wants to merge 2 commits from ci into main
3 changed files with 90 additions and 29 deletions
Showing only changes of commit 316d7756c4 - Show all commits

59
.forgejo/workflows/CI.yml Normal file
View file

@ -0,0 +1,59 @@
name: 'CI'
on:
push:
branches:
- 'main'
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: |
/usr/local/bin/ros
/usr/local/etc/roswell/
~/.roswell
~/.config/common-lisp/source-registry.conf.d
~/lisp
.qlot/
key: roswell-${{ runner.os }}-${{ matrix.lisp }}-${{ hashFiles('qlfile.lock', '.forgejo/workflows/CI.yml') }}
- name: Install dependencies
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
ros install fukamachi/qlot
PATH="~/.roswell/bin:$PATH"
qlot install
- name: Save cache
id: save-cache
uses: actions/cache/save@v4
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: |
/usr/local/bin/ros
/usr/local/etc/roswell/
~/.roswell
~/.config/common-lisp/source-registry.conf.d
~/lisp
.qlot/
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- name: Run tests
run: .qlot/bin/rove ningle-fbr.asd

31
.github/workflows/CI.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: 'CI'
on:
push:
branches:
- 'main'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
lisp:
- sbcl-bin
steps:
- uses: actions/checkout@v4
- name: Install dependencies
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
ros install fukamachi/qlot
PATH="~/.roswell/bin:$PATH"
qlot install
- name: Run tests
run: .qlot/bin/rove ningle-fbr.asd

View file

@ -1,29 +0,0 @@
name: 'test'
on:
push:
branches:
- 'main'
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
lisp:
- sbcl-bin
- ccl-bin
env:
LISP: ${{ matrix.lisp }}
steps:
- uses: actions/checkout@v4
- uses: 40ants/setup-lisp@v4
with:
asdf-system: ningle-fbr
- uses: 40ants/run-tests@v2
with:
asdf-system: ningle-fbr