-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (73 loc) · 2.22 KB
/
Copy pathelisp-compile.yml
File metadata and controls
83 lines (73 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Elisp Compile
on:
push:
branches: [ main, develop, "copilot/**" ]
paths:
- '**.el'
- '.github/workflows/elisp-compile.yml'
- 'Cask'
pull_request:
branches: [ main, develop ]
paths:
- '**.el'
- '.github/workflows/elisp-compile.yml'
- 'Cask'
jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
emacs-version: ['29.1', '28.2', '27.2']
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- name: Setup Cask
uses: conao3/setup-cask@master
with:
version: 'snapshot'
- name: Install dependencies
run: cask install
- name: Byte compile all elisp files
run: |
cask emacs --batch \
--eval "(setq byte-compile-error-on-warn nil)" \
--eval "(setq byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local))" \
-f batch-byte-compile \
*.el
- name: Check for byte-compilation warnings
run: |
cask emacs --batch \
--eval "(setq byte-compile-error-on-warn t)" \
--eval "(setq byte-compile-warnings t)" \
-f batch-byte-compile \
aichat.el \
aichat-util.el \
aichat-opencog.el \
aichat-ecan.el \
aichat-pln.el \
aichat-moses.el \
aichat-esn.el \
skintwin.el \
skintwin-integration.el \
skintwin-mode.el
continue-on-error: true
- name: Load test - Load all main files
run: |
cask emacs --batch \
--eval "(add-to-list 'load-path default-directory)" \
--eval "(require 'aichat)" \
--eval "(require 'skintwin)" \
--eval "(message \"Successfully loaded all main modules\")"
- name: Archive byte-compiled files
if: always()
uses: actions/upload-artifact@v4
with:
name: compiled-elisp-emacs-${{ matrix.emacs-version }}
path: |
*.elc
retention-days: 7