Skip to content

Commit 0f6fdda

Browse files
committed
Install compat package in CI workflow
1 parent 61f45b7 commit 0f6fdda

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ jobs:
4545
- uses: purcell/setup-emacs@master
4646
with:
4747
version: ${{ matrix.emacs_version }}
48+
- name: Install compat
49+
run: emacs --batch -f package-initialize -f package-refresh-contents --eval "(package-install 'compat)"
4850

4951
- uses: actions/checkout@v6
5052
- name: Byte compilation
51-
run: emacs --eval "(setq byte-compile-error-on-warn t)" -L . --batch -f batch-byte-compile ./*.el
53+
# package-activate-all is not available until Emacs 27
54+
run: emacs --eval "(setq byte-compile-error-on-warn t)" -L . --batch -f package-initialize -f batch-byte-compile ./*.el
5255
- name: Tests
5356
run: nix shell ${{ matrix.ledger_version || 'nixpkgs#ledger' }} --print-build-logs -c make -C test
5457
# This is currently for information only, since a lot of docstrings need fixing up

test/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
EMACS ?= emacs
2-
EMACS_FLAGS = --quick --directory . --directory ..
2+
# package-activate-all is not available until Emacs 27
3+
EMACS_FLAGS = --quick --directory . --directory .. -f package-initialize
34
EMACS_BATCH = "$(EMACS)" --batch $(EMACS_FLAGS)
45
EMACS_INTERACTIVE = "$(EMACS)" $(EMACS_FLAGS)
56

0 commit comments

Comments
 (0)