Skip to content

Commit

Permalink
Re-organize CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
okamsn committed Dec 25, 2023
1 parent b701032 commit 4d47b40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
strategy:
matrix:
emacs_version: [25, 26, 27, 28]
make_target: ['checkdoc', 'longlines', 'test', 'compile']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CI
env:
VERSION: ${{ matrix.emacs_version }}
run: >-
make docker CMD="make -k compile checkdoc longlines test"
TARGET: ${{ matrix.make_target }}
run: |
echo "Emacs version is: $VERSION"
>-
make docker CMD="make -k $TARGET VERSION=$VERSION"
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ EMACS ?= emacs

# The order is important for compilation.
for_compile := prescient.el $(wildcard *-prescient.el)
# Don't bother testing compilation of the Vertico and Corfu packages
# for Emacs versions that Vertico/Corfu doesn't support.
ifneq ($(VERSION),undefined)
$(info VERSION is $(VERSION))
ifeq (1, $(strip $(shell expr $(VERSION) \< 27)))
$(info Inside condition)
for_compile := $(subst vertico-prescient.el,,$(for_compile))
for_compile := $(subst corfu-prescient.el,,$(for_compile))
endif
endif
$(info for_compile is $(for_compile))
for_checkdoc := prescient.el $(wildcard *-prescient.el)
for_longlines := $(wildcard *.el *.md *.yml) Makefile

Expand Down

0 comments on commit 4d47b40

Please sign in to comment.