Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Oct 15, 2024
1 parent 84f28ff commit e3499ee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 67 deletions.
80 changes: 14 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,100 +9,48 @@ on:

jobs:
test:
name: ${{ matrix.os }}

defaults:
run:
shell: bash -l {0}

strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-22.04
- windows-latest

# run the job on every combination of "os" above
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest

container:
image: ghcr.io/yitzchak/archlinux-cl:latest
options: --security-opt seccomp:unconfined

steps:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true

- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
conda install -c conda-forge m2w64-gcc m2w64-zeromq
echo "C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $GITHUB_PATH
echo "SBCL_HOME=C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $GITHUB_ENV
- name: Install Windows dependencies (pt 2)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
curl -L http://downloads.sourceforge.net/project/sbcl/sbcl/2.0.0/sbcl-2.0.0-x86-64-windows-binary.msi --output sbcl.msi
msiexec /qn /i sbcl.msi
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ecl libzmq3-dev sbcl
sudo bash -c "$(curl -fsSL https://www.thirdlaw.tech/pkg/clasp.sh)"
- name: Install MacOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew install clozure-cl czmq sbcl ecl clasp-developers/clasp/clasp-cl
- name: Install Jupyter
run: |
conda install -c conda-forge jupyterlab jupyter_kernel_test
pacman -Syu jupyterlab
- name: Install pytest-jupyter_kernel
run: |
pip install build
git clone https://github.com/yitzchak/pytest-jupyter_kernel.git
cd pytest-jupyter_kernel
pyproject-build
pip install dist/pytest_jupyter_kernel-0.1.0-py3-none-any.whl
pip install --break-system-packages --user dist/pytest_jupyter_kernel-0.1.0-py3-none-any.whl
- name: Checkout repository
uses: actions/checkout@v4

- name: Download Quicklisp
- name: Setup Lisp Environment
run: |
curl -kLO https://beta.quicklisp.org/quicklisp.lisp
make-rc
asdf-add
# - name: Clone dependencies that have not been updated in Quicklisp
# run: |
# git clone https://github.com/yitzchak/shasht.git ~/quicklisp/local-projects/shasht
# git clone -b fix-utf-8 https://github.com/yitzchak/language-codes.git ~/quicklisp/local-projects/language-codes

# - name: Clone dependencies that have not been updated in Quicklisp (pt 2)
# if: matrix.os == 'windows-latest'
# run: |
# git clone https://github.com/orivej/pzmq.git ~/quicklisp/local-projects/pzmq

- name: Install CCL kernel on MacOS
if: matrix.os == 'macos-latest'
- name: Install CCL kernel
run: |
ccl64 --batch --load scripts/usr-install.lisp
# - name: Install CCL kernel on Ubuntu
# if: matrix.os == 'ubuntu-22.04'
# run: |
# ccl --batch --load scripts/usr-install.lisp
ccl --batch --load scripts/usr-install.lisp
- name: Install CLASP kernel
if: matrix.os != 'windows-latest'
run: |
clasp --non-interactive --load scripts/usr-install.lisp
- name: Install ECL kernel
if: matrix.os != 'windows-latest'
run: |
ecl --load scripts/usr-install.lisp --eval '(ext:quit)'
Expand Down
4 changes: 3 additions & 1 deletion src/kernel.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,9 @@
hash-seed (random #xffffffff *uuid-random-state*)
(logical-pathname-translations "CELL") (list (list "*.*.*"
(namestring (merge-pathnames (uiop:default-temporary-directory)
(concatenate 'string session "-*.*")))))
(make-pathname :directory `(:relative ,session)
:name :wild
:type :wild)))))
tmp-file-prefix "CELL:"
tmp-file-suffix (concatenate 'string (string-upcase file-extension) #+ccl ".newest" #-ccl ".NEWEST")
ctx (pzmq:ctx-new)
Expand Down

0 comments on commit e3499ee

Please sign in to comment.