-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.66 KB
/
test.yml
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
name: CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
strategy:
matrix:
emacs-version: ['29.1', '29.4']
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
emacs-version: 'snapshot'
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.emacs-version == 'snapshot'}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Texinfo (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt --assume-yes install texinfo
- name: Install Texinfo (MacOS)
if: runner.os == 'macOS'
run: brew install texinfo
- name: Install Texinfo (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
install: texinfo
# See https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg00521.html
- name: Fix MSYS2 makeinfo Installation (Windows)
if: runner.os == 'Windows'
shell: cmd
run: |
echo @echo off>> ${{runner.temp}}\msys64\mingw64\bin\makeinfo.bat
echo perl ${{runner.temp}}\msys64\usr\bin\makeinfo %%*>> ${{runner.temp}}\msys64\mingw64\bin\makeinfo.bat
echo ${{runner.temp}}\msys64\mingw64\bin>> %GITHUB_PATH%
- name: Setup Emacs
uses: jcs090218/setup-emacs@master
with:
version: ${{matrix.emacs-version}}
- name: Install Eldev
uses: emacs-eldev/setup-eldev@v1
- name: Test the project
run: |
eldev -p -dtT test
eldev -dtT compile --warnings-as-errors