-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (73 loc) · 2.04 KB
/
ci.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches:
- '*'
tags:
- '*'
paths:
- '**'
- '!*.md'
pull_request:
paths:
- '**'
- '!*.md'
jobs:
run-on-mac:
name: Run on Mac
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout Emacs
uses: actions/checkout@v4
with:
repository: nanasess/emacs-package
ref: for-carbon-emacs
path: ./emacs-package
submodules: true
- name: prepare
run: |
git config --global user.name "Kentaro Ohkouchi"
git config --global user.email [email protected]
brew install texinfo pkg-config
cd ./emacs-package/emacs && ./autogen.sh
- name: build emacs
working-directory: ./emacs-package
run: |
sudo mkdir -p /usr/local/libexec
sudo chown -R runner /usr/local/libexec
export PATH="/usr/local/opt/texinfo/bin:$PATH"
export PATH="/usr/local/opt/gnutls/bin:$PATH"
make install
- run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs --version
- name: bootstrap
run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs -q -l .emacs.d/init.el --batch
- name: byte-compile
run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs -q -l .emacs.d/init.el --batch -f batch-byte-compile .emacs.d/init.el
run-on-ubuntu:
name: Run on Ubuntu
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build emacs
run: |
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-fast update
sudo apt-fast install -y texinfo emacs28
- run: emacs --version
- name: bootstrap
run: |
emacs -q -l .emacs.d/init.el --batch
- name: byte-compile
run: |
emacs -q -l .emacs.d/init.el --batch -f batch-byte-compile .emacs.d/init.el