TODO: figure out missing <vector> error #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |