Skip to content

Commit

Permalink
Compile files individually in CI
Browse files Browse the repository at this point in the history
We just sprinkle some eval-when-compiles around for older Emacs.  We can remove
them when the CI no longer supports Emacs 25.1.
  • Loading branch information
bcc32 committed Jul 14, 2024
1 parent 36091fc commit 83cb679
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Byte compilation
run: emacs --eval "(setq byte-compile-error-on-warn (>= emacs-major-version 26))" -L . --batch -f batch-byte-compile ./*.el
- name: Tests
run: nix shell ${{ matrix.ledger_version || 'nixpkgs#ledger' }} --print-build-logs -c ./makem.sh test -vv --compile-batch
run: nix shell ${{ matrix.ledger_version || 'nixpkgs#ledger' }} --print-build-logs -c ./makem.sh test -vv
# This is currently for information only, since a lot of docstrings need fixing up
- name: Checkdoc
run: make lint-checkdoc || true
Expand Down
3 changes: 1 addition & 2 deletions ledger-complete.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
;; Functions providing payee and account auto complete.

(require 'cl-lib)
(eval-when-compile
(require 'subr-x))
(eval-when-compile (require 'subr-x))

;; In-place completion support

Expand Down
1 change: 1 addition & 0 deletions ledger-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

;;; Code:

(eval-when-compile (require 'subr-x))
(require 'ledger-regex)
(require 'org)
(require 'ledger-commodities)
Expand Down
1 change: 1 addition & 0 deletions ledger-occur.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
;;; Code:

(require 'cl-lib)
(eval-when-compile (require 'subr-x))
(require 'ledger-navigate)

(defconst ledger-occur-overlay-property-name 'ledger-occur-custom-buffer-grep)
Expand Down
1 change: 1 addition & 0 deletions ledger-post.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
;;; Commentary:
;; Utility functions for dealing with postings.

(eval-when-compile (require 'subr-x))
(require 'ledger-regex)
(require 'ledger-navigate)

Expand Down
1 change: 1 addition & 0 deletions ledger-reconcile.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

;;; Code:

(eval-when-compile (require 'subr-x))
(require 'easymenu)
(require 'ledger-init)

Expand Down
1 change: 1 addition & 0 deletions ledger-xact.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

;;; Code:

(eval-when-compile (require 'subr-x))
(require 'eshell)
(require 'ledger-regex)
(require 'ledger-navigate)
Expand Down

0 comments on commit 83cb679

Please sign in to comment.