branch: elpa/sly
commit e0b8ea81ec5f41838d0ca403cffc311944f33c53
Author: AndrĂ© A. Gomes <[email protected]>
Commit: AndrĂ© A. Gomes <[email protected]>

    Add CI.
---
 .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000000..559711e5090
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,49 @@
+name: Tests
+
+on:
+  push:
+    branches: [master]
+  pull_request:
+    branches: [master]
+
+jobs:
+  test:
+    name:  Emacs ${{matrix.emacs_version}} | ${{matrix.lisp}} | ${{matrix.os}}
+    runs-on: ${{matrix.os}}
+    timeout-minutes: 30
+
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-latest, macos-latest]
+        lisp: [sbcl, ccl]
+        # Use Emacs "LTS" versions (the last release of every major one).
+        emacs_version: [24.5, 25.3, 26.3, 27.2, 28.2, 29.4, 30.2, 
release-snapshot, snapshot]
+        exclude:
+          # Nix doesn't provide CCL for aarch64-darwin.
+          - os: macos-latest
+            lisp: ccl
+          # purcell/setup-emacs provides:
+          # (Intel MacOS) Emacs >=24.3
+          # (ARM MacOS)   Emacs >=28.1
+          - os: macos-latest
+            emacs_version: 24.5
+          - os: macos-latest
+            emacs_version: 25.3
+          - os: macos-latest
+            emacs_version: 26.3
+          - os: macos-latest
+            emacs_version: 27.2
+
+    steps:
+    - uses: actions/checkout@v5
+    - uses: cachix/install-nix-action@v31
+      with:
+        nix_path: nixpkgs=channel:nixos-25.05
+    - uses: purcell/setup-emacs@master
+      with:
+        version: ${{matrix.emacs_version}}
+
+    # - run: nix-shell -p ${{matrix.lisp}} --run "${{matrix.lisp}} --version"
+    # - run: nix-shell -p ${{matrix.lisp}} --run "emacs --version"
+    - run: nix-shell -p ${{matrix.lisp}} --run "LISP=${{matrix.lisp}} make 
check"

Reply via email to