forked from emacs-mirror/emacs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (66 loc) · 2.2 KB
/
emacs-apple.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
name: cooljeanius/emacs-apple
on:
push:
branches:
- "**/*"
pull_request:
jobs:
test:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/[email protected]
- run: brew update
- run: brew install make automake gettext texinfo gawk gdb coreutils gnu-tar gnu-sed gnu-which
- name: Initial build
run: |
if test -n "${{ matrix.compiler }}"; then \
echo "This is the ${{ matrix.compiler }} build."; \
which -a ${{ matrix.compiler }} || gwhich -a ${{ matrix.compiler }}; \
else \
echo "matrix.compiler unset (possibly wrong variable?)"; \
fi
sh ./autogen.sh
env | uniq | sort | uniq
./configure --enable-silent-rules --disable-autodepend --enable-gcc-warnings --enable-better-debugging --with-x-toolkit=no --disable-dependency-tracking --with-ns
make only_temacs
cd lisp && make update-subdirs
- run: make all_only_c
if: "${{ success() }}"
- name: Build docs
if: "${{ success() }}"
run: |
if test -d doc && test -w doc && test -x "$(which makeinfo)" && test -x "$(which brew)" && test -x "$(which nproc)"; then \
echo "using $(which makeinfo) for makeinfo with the following version info: $(makeinfo --version)"; \
brew install texlive; \
echo "nproc says we can use $(nproc) build jobs."; \
make -j"$(nproc)" -C doc || make -C doc || (make -C doc/emacs && make -C doc/lispintro && make -C doc/lispref && make -C doc/man); \
if [ $? -ge 1 ]; then \
echo "giving doc/misc another try"; \
pushd doc/misc; \
make echo-info; \
make dvi; \
make html; \
make pdf; \
make ps; \
make dist; \
popd; \
else \
echo "so much for doc/misc..."; \
fi; \
else \
echo "skipping building docs..."; \
fi
- name: Apple stuff
if: "${{ success() }}"
run: |
make install_source
make dumpemacs
make emacswrapper
make -ki apple_check
strategy:
fail-fast: false
matrix:
compiler:
- clang
- gcc