fixup! fixup! fixup! fixup! fixup! fixup! Ticket #4170: implement CI … #6
Workflow file for this run
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: CI | |
on: [ push ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y autoconf gettext autopoint libtool check indent | |
sudo apt-get install -y e2fslibs-dev libaspell-dev libglib2.0-dev libpcre2-dev libgpm-dev libncurses5-dev libslang2-dev libssh2-1-dev libx11-dev unzip | |
- name: Bootstrap build system | |
run: ./autogen.sh | |
- name: Build distribution archive | |
run: | | |
mkdir -p build-distrib && cd $_ | |
../configure | |
make dist-bzip2 | |
- name: Build full configuration | |
run: | | |
tar -xjf $(ls build-distrib/mc-*.tar.bz2) --one-top-level=build-full | |
cd build-full | |
../configure \ | |
--prefix="$(pwd)/install" \ | |
--enable-mclib \ | |
--enable-aspell \ | |
--enable-vfs-undelfs \ | |
--enable-werror | |
make | |
make -k check | |
make install | |
make indent | |
exit $(git ls-files --modified | wc -l) | |
- name: Build ncurses & pcre2 configuration | |
run: | | |
tar -xjf $(ls build-distrib/mc-*.tar.bz2) --one-top-level=build-ncurses | |
cd build-ncurses | |
../configure \ | |
--prefix="$(pwd)/install" \ | |
--with-screen=ncurses \ | |
--with-search-engine=pcre2 \ | |
--enable-werror | |
make | |
- name: Build minimal configuration | |
run: | | |
tar -xjf $(ls build-distrib/mc-*.tar.bz2) --one-top-level=build-minimal | |
cd build-minimal | |
../configure \ | |
--prefix="$(pwd)/install" \ | |
--disable-shared \ | |
--disable-static \ | |
--disable-maintainer-mode \ | |
--disable-largefile \ | |
--disable-nls \ | |
--disable-rpath \ | |
--disable-charset \ | |
--disable-mclib \ | |
--disable-assert \ | |
--disable-aspell \ | |
--disable-background \ | |
--disable-vfs \ | |
--disable-doxygen-doc \ | |
--without-x \ | |
--without-mmap \ | |
--without-gpm-mouse \ | |
--without-internal-edit \ | |
--without-diff-viewer \ | |
--without-subshell \ | |
--enable-tests \ | |
--enable-werror | |
make |