branch: elpa/treesit-fold
commit be87b44bc01d305612735ac9b713080b87c91e0c
Author: Jen-Chieh Shen <[email protected]>
Commit: Jen-Chieh Shen <[email protected]>
Update CI
---
.github/workflows/test.yml | 32 ++++++++++++++++++++++++++------
Makefile | 8 ++++----
2 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e75bce8b62..f0e5595b14 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -31,14 +31,34 @@ jobs:
with:
version: 'snapshot'
- - name: Setup cmake
- uses: jwlawson/[email protected]
+ - name: Run tests
+ run:
+ make unix-ci
+
+ windows-test:
+ runs-on: windows-latest
+ strategy:
+ matrix:
+ emacs-version:
+ - 27.2
+ - snapshot
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: actions/setup-python@v2
with:
- cmake-version: '3.18.x'
+ python-version: "3.6"
+ architecture: "x64"
- - name: Check cmake
- run: "cmake --version"
+ - uses: jcs090218/setup-emacs-windows@master
+ with:
+ version: ${{ matrix.emacs-version }}
+
+ - uses: cask/setup-cask@master
+ with:
+ version: 'snapshot'
- name: Run tests
run:
- make unix-ci
+ make windows-ci
diff --git a/Makefile b/Makefile
index 2c776552b5..fb8d106685 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,14 @@ PKG-FILES := ts-fold.el
TEST-FILES := $(shell ls test/ts-fold-*.el)
-.PHONY: clean checkdoc lint unix-build unix-compile unix-test
+.PHONY: clean checkdoc lint build compile unix-test
-unix-ci: clean unix-build unix-compile
+ci: clean build compile
-unix-build:
+build:
$(CASK) install
-unix-compile:
+compile:
@echo "Compiling..."
@$(CASK) $(EMACS) -Q --batch \
-L . \