Skip to content

ok looks like CI doesn't like libattr1-dev either #128

ok looks like CI doesn't like libattr1-dev either

ok looks like CI doesn't like libattr1-dev either #128

Workflow file for this run

name: cooljeanius/emacs
on:
push:
branches:
- "**/*"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
# # 'Transformers::TravisCI::Scripts::Dependencies' dependencies are currently unsupported
# # 'compiler' was not transformed because there is no suitable equivalent in GitHub Actions
- run: sudo apt-get update -qq
- run: DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 libc-dev ${{ matrix.compiler }} make autoconf automake libncurses-dev gobjc gobjc++ gobjc-multilib gobjc++-multilib autopoint libacl1-dev
- name: Initial build
run: |
sh ./autogen.sh
./configure --without-makeinfo --without-gif --without-gnutls --enable-silent-rules --disable-autodepend --without-imagemagick --enable-gcc-warnings --with-x-toolkit=no --with-xpm=no --disable-openmp
make gnulib_headers || (stat lib/Makefile && wc -l lib/Makefile)
make only_temacs
ls src/*emacs
cd lisp && make update-subdirs
- name: Extra build
if: "${{ success() }}"
run: |
make all_only_c
if test -x "$(which clang)" && test -n "$(clang --version)"; then \
echo "attempting to use $(which clang) for static analysis"; \
echo "but first, let us check the version that it reports..."; \
clang --version; \
if test -x "$(which nproc)" && test -n "$(nproc)" && test "$(nproc)" -gt 1; then \
if test -x "$(which scan-build)" && test "${{ matrix.compiler }}" = "clang" && test -d /tmp && test -w /tmp; then \
echo "first, an attempt at using $(which scan-build)..."; \
scan-build -o /tmp make -j"$(nproc)" only_temacs all_only_c; \
else \
echo "skipping scan-build..."; \
fi; \
make -j"$(nproc)" -C src check || make -j"$(nproc)" -ki -C src check; \
make -j"$(nproc)" -C lib-src all-plist || make -j"$(nproc)" -ki -C lib-src all-plist; \
else \
echo "warning: on the slow path..."; \
make -C src check || make -ki -C src check; \
make -C lib-src all-plist || make -ki -C lib-src all-plist; \
fi; \
else \
echo "no usable clang found for static analysis!"; \
fi
- name: Build docs
if: "${{ success() }}"
run: |
if test -d doc && test -x "$(which makeinfo)"; then \
echo "using $(which makeinfo) for makeinfo with the following version info: $(makeinfo --version)"; \
sudo apt-get install texlive ghostscript texlive-luatex texlive-pstricks chktex dvidvi dvipng latexdiff latexmk dot2tex texlive-latex-extra; \
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 "Need valid makeinfo to build docs."; \
fi
strategy:
fail-fast: false
matrix:
compiler:
- clang
- gcc