branch: externals/csharp-mode commit af1cf506970747a595c6096d07971d645d491e14 Author: JenChieh <jcs090...@gmail.com> Commit: JenChieh <jcs090...@gmail.com>
Try windows build --- .github/workflows/build.yml | 30 +++++++++++++++++++++++++++++- makefile | 14 +++++++------- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b25dd63..35fc699 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: workflow_dispatch: jobs: - build: + unix-build: runs-on: ${{ matrix.os }} name: Emacs - ${{ matrix.emacs }} strategy: @@ -42,3 +42,31 @@ jobs: run: | emacs --version make test + + windows-build: + runs-on: windows-latest + name: Emacs - ${{ matrix.emacs }} + strategy: + matrix: + emacs: [26.1, 26.2, 26.3, 27.1, 27.2, snapshot] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: "3.6" + architecture: "x64" + + - uses: jcs090218/setup-emacs-windows@master + with: + version: ${{ matrix.emacs }} + + - uses: conao3/setup-cask@master + with: + version: 0.8.4 + + - name: Run a multi-line script + run: | + emacs --version + make test diff --git a/makefile b/makefile index 2705aca..7e1a249 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ -EMACS="$(shell which emacs)" -EMACS_CLI=$(EMACS) -Q -batch -L . -CASK=~/.cask/bin/cask +EMACS ?= emacs +CASK ?= cask + TESTHOME=/tmp/emacs package: build @@ -9,9 +9,10 @@ package: build build: test $(CASK) build -test: *.el - mkdir -p $(TESTHOME) - + HOME=$(TESTHOME) $(EMACS_CLI) -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit +test: + @echo "Testing..." + @$(CASK) $(EMACS) -Q -batch + -L . -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit clean: $(CASK) clean-elc @@ -22,4 +23,3 @@ check-defuns: grep "^(defun " csharp-mode.el | sed -r "s/\(defun ([a-z0-9-]+) .*$$/\1/" | sort >/tmp/defuns.txt for line in `cat /tmp/defuns.txt` ; do echo -n "$$line: " ; grep "$$line" csharp-mode.el | grep -v defun | wc -l ; done >/tmp/use-count.txt grep " 0" /tmp/use-count.txt -