Skip to content
Merged

Ci #78

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 13 additions & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on:
push:
branches: [ master ]
branches: [ master, ci ]
pull_request:
branches: [ master ]

Expand All @@ -14,49 +14,19 @@ jobs:
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
LISP: ${{ matrix.lisp }}

steps:

- uses: actions/checkout@v3
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7

- name: system version
run: |
uname -a

- name: set up for cache
id: current-month
run: |
sudo mkdir -p /usr/local/etc/roswell
sudo chown "${USER}" /usr/local/etc/roswell
# Here the ros binary will be restored:
sudo chown "${USER}" /usr/local/bin
echo "::set-output name=value::$(date -u "+%Y-%m")"

- name: Cache roswell
id: cache
uses: actions/cache@v3
env:
cache-name: cache-roswell
with:
path: |
/usr/local/bin/ros
~/.cache/common-lisp/
~/.roswell
/usr/local/etc/roswell
.qlot
key: "${{ steps.current-month.outputs.value }}-${{ runner.os }}-${{ matrix.lisp }}-${{ env.cache-name }}-${{ hashFiles('**/*.asd') }}"
restore-keys: |
${{ steps.current-month.outputs.value }}-${{ runner.os }}-${{ matrix.lisp }}-
${{ steps.current-month.outputs.value }}-${{ runner.os }}-

- name: Restore cache
run: |
echo $HOME/.roswell/bin >> $GITHUB_PATH
echo .qlot/bin >> $GITHUB_PATH
if: steps.cache.outputs.cache-hit == 'true'

- name: setup cl
if: steps.cache.outputs.cache-hit != 'true'
uses: 40ants/setup-lisp@v2
uses: 40ants/setup-lisp@76212e4597c780ad0e2ead24144b54310dffb6e3 #4.2.1
# with:
# asdf-system: ci-test

Expand All @@ -78,36 +48,36 @@ jobs:
mkdir -p ~/.cache/common-lisp/

- name: load code from clean fasl cache
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd

- name: load from fasls
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd

- name: test youtube extension
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd-youtube

- name: test table extension
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd-ext-tables

- name: test wiki links extension
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd-ext-wiki-links

- name: test definition-list extension
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd-ext-definition-lists

- name: test code-blocks extension
uses: 40ants/run-tests@v2
uses: 40ants/run-tests@663e2dc4907e1c46a3aa21a2e1cf7562e0a4db9d # 2.3.0
with:
asdf-system: 3bmd-ext-code-blocks
Loading