Skip to content

Commit

Permalink
Update freebsd-vm in BSD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-coram committed Nov 7, 2023
1 parent 641e12a commit cb67bd4
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/BSD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
- cron: '0 0 1 * *'

jobs:
test:
name: ${{ matrix.lisp }} on BSD
runs-on: macos-latest
test_freebsd:
name: ${{ matrix.lisp }} on FreeBSD
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -23,36 +23,47 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run tests on OpenBSD
uses: vmactions/openbsd-vm@v0
- name: Run tests on FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
sync: rsync
copyback: false
prepare: |
if [[ "${{ matrix.lisp }}" = "sbcl" ]]; then
/usr/sbin/pkg_add ${{ matrix.lisp }}--threads
else
/usr/sbin/pkg_add ${{ matrix.lisp }}
fi
/usr/sbin/pkg_add wget
sed 's/quarterly/latest/' /etc/pkg/FreeBSD.conf > /tmp/FreeBSD.conf && mv /tmp/FreeBSD.conf /etc/pkg/
pkg install -y ${{ matrix.lisp }} wget
wget https://beta.quicklisp.org/quicklisp.lisp
${{ matrix.lisp }} --load quicklisp.lisp --eval '(progn (quicklisp-quickstart:install) (quit))'
run: |
mkdir -p ~/quicklisp/local-projects/cl-trivial-clock
cp trivial-clock* ~/quicklisp/local-projects/cl-trivial-clock
${{ matrix.lisp }} --load ~/quicklisp/setup.lisp --eval "(ql:quickload :trivial-clock/test)" --eval "(progn (uiop:quit (if (uiop:symbol-call :fiveam '#:run! :trivial-clock) 0 1)))"
- name: Run tests on FreeBSD
uses: vmactions/[email protected]
test_otherbsds:
name: ${{ matrix.lisp }} on other BSDs
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
lisp: [sbcl, ecl]

steps:
- uses: actions/checkout@v3

- name: Run tests on OpenBSD
uses: vmactions/openbsd-vm@v0
with:
usesh: true
sync: rsync
copyback: false
prepare: |
sed 's/quarterly/latest/' /etc/pkg/FreeBSD.conf > /tmp/FreeBSD.conf && mv /tmp/FreeBSD.conf /etc/pkg/
pkg install -y ${{ matrix.lisp }} wget
if [[ "${{ matrix.lisp }}" = "sbcl" ]]; then
/usr/sbin/pkg_add ${{ matrix.lisp }}--threads
else
/usr/sbin/pkg_add ${{ matrix.lisp }}
fi
/usr/sbin/pkg_add wget
wget https://beta.quicklisp.org/quicklisp.lisp
${{ matrix.lisp }} --load quicklisp.lisp --eval '(progn (quicklisp-quickstart:install) (quit))'
run: |
Expand Down

0 comments on commit cb67bd4

Please sign in to comment.