Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
metawilm committed May 9, 2024
1 parent 82bcbf6 commit 2c15dd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/force-native.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(in-package :cl-user)

(eval-when (:compile-toplevel :load-toplevel :execute)
(setf *features*
(cons :custom-hash-table-fallback
(remove :custom-hash-table-native *features*))))
21 changes: 15 additions & 6 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4

install_ecl:
name: Download and Install ECL
runs-on: ubuntu-latest
Expand All @@ -33,11 +33,20 @@ jobs:
cd /tmp
wget -q https://beta.quicklisp.org/quicklisp.lisp
test_ecl:
name: Run cl-custom-hash-table build & test on ECL
run_test_suites:
name: Run test suites of all implementations
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
scenario: [ecl_native, ecl_fallback]
needs: [checkout_repo, install_quicklisp, install_ecl]
steps:
- name: Run cl-custom-hash-table tests on ECL
run:
ecl --shell /home/runner/work/cl-custom-hash-table/cl-custom-hash-table/.github/workflows/github-workflow-tests.lisp
- run: |
cd /home/runner/work/cl-custom-hash-table/cl-custom-hash-table/.github/workflows/
cat force-native.lisp github-workflow-tests.lisp > github-workflow-tests-fallback.lisp
- run: cd /tmp
- run: ecl --shell /home/runner/work/cl-custom-hash-table/cl-custom-hash-table/.github/workflows/github-workflow-tests.lisp
if: ${{scenario}} == ecl_native
- run: ecl --shell /home/runner/work/cl-custom-hash-table/cl-custom-hash-table/.github/workflows/github-workflow-tests-fallback.lisp
if: ${{scenario}} == ecl_fallback

0 comments on commit 2c15dd7

Please sign in to comment.