-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Ticket #4170: implement CI via GitHub Actions
Signed-off-by: Yury V. Zaytsev <[email protected]>
- Loading branch information
Showing
5 changed files
with
146 additions
and
150 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ci-macos | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
|
||
env: | ||
CFLAGS: -Wno-assign-enum | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install autoconf automake gettext check gnu-indent libtool pkg-config | ||
brew install aspell e2fsprogs glib libssh2 openssl s-lang | ||
# unzip is part of the base system | ||
- name: Bootstrap build system | ||
run: ./autogen.sh | ||
|
||
- name: Build default configuration | ||
run: | | ||
mkdir build-default && cd $_ | ||
../configure \ | ||
--prefix="$(pwd)/install" \ | ||
--enable-mclib \ | ||
--enable-aspell=/opt/homebrew | ||
make -j$(sysctl -n hw.logicalcpu) | ||
make check | ||
make install | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: test-suite-logs-macos | ||
path: build-*/**/test-suite.log |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: ci-ubuntu | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
runs-on: ubuntu-latest | ||
|
||
build-ubuntu: | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y autoconf autopoint check gettext indent libtool pkg-config | ||
sudo apt-get install -y e2fslibs-dev libaspell-dev libglib2.0-dev libgpm-dev libncurses5-dev libpcre2-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 indent | ||
# TODO: exit 1 | ||
git ls-files --modified | ||
make -j$(nproc) | ||
make check | ||
make install | ||
- 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 -j$(nproc) | ||
make check | ||
- 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-gpm-mouse \ | ||
--without-internal-edit \ | ||
--without-diff-viewer \ | ||
--without-subshell \ | ||
--enable-tests \ | ||
--enable-werror | ||
make -j$(nproc) | ||
make check | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: test-suite-logs-ubuntu | ||
path: build-*/**/test-suite.log | ||
|
This file was deleted.
Oops, something went wrong.
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