msys2: comment out build steps #66
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 build' | |
# Exclude some non-existing example branch | |
on: | |
push: | |
branches-ignore: | |
- html-docs | |
pull_request: | |
branches-ignore: | |
- html-docs | |
env: | |
LC_ALL: C | |
COMMON_CONFIGURE_FLAGS: >- | |
--disable-silent-rules | |
jobs: | |
amb: | |
runs-on: ${{ matrix.os }} | |
name: 'amb ${{ matrix.os }}' | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Determine number of cores to build on (Linux)' | |
if: runner.os == 'Linux' | |
run: echo NPROC=$(nproc) >> $GITHUB_ENV | |
- name: 'Determine number of cores to build on (macOS)' | |
if: runner.os == 'macOS' | |
run: echo NPROC=$(sysctl -n hw.logicalcpu) >> $GITHUB_ENV | |
# Setting MAKE interferes with Makefile{,.in,.am} using $(MAKE) internally | |
- name: 'Prepare concurrent make' | |
run: if test "x$NPROC" = x; then echo ci_MAKE="make" >> $GITHUB_ENV; echo "NPROC must be set"; exit 1; else echo ci_MAKE="make -j${NPROC} -l${NPROC}" >> $GITHUB_ENV; fi | |
- name: 'Update software database (Linux)' | |
if: runner.os == 'Linux' | |
run: sudo apt-get update | |
- name: 'Update software database (macOS)' | |
if: runner.os == 'macOS' | |
run: brew update | |
- name: 'Install build requirements (Linux)' | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y libext2fs-dev pkgconf | |
- name: 'Install build requirements (macOS)' | |
if: runner.os == 'macOS' | |
run: | | |
brew install autoconf automake pkg-config e2fsprogs | |
echo PATH="/opt/homebrew/opt/e2fsprogs/bin:/opt/homebrew/opt/e2fsprogs/sbin:$PATH" >> $GITHUB_ENV | |
echo PKG_CONFIG_PATH="/opt/homebrew/opt/e2fsprogs/lib/pkgconfig${PKG_CONFIG_PATH+":$PKG_CONFIG_PATH"}" >> $GITHUB_ENV | |
# - name: 'OS specific build flags (Linux)' | |
# if: runner.os == 'Linux' | |
# run: echo OS_SPECIFIC_CPPFLAGS="" >> $GITHUB_ENV | |
# # FIXME: Fix source to build without the -D_DARWIN_C_SOURCE here | |
# - name: 'OS specific build flags (macOS)' | |
# if: runner.os == 'macOS' | |
# run: echo OS_SPECIFIC_CPPFLAGS="-D_DARWIN_C_SOURCE -I$(brew --prefix)/include" >> $GITHUB_ENV | |
- name: 'autoreconf' | |
run: autoreconf -v -i -f | |
- name: 'configure' | |
run: if ./configure ${COMMON_CONFIGURE_FLAGS} --prefix=$PWD/__prefix; then :; else cat config.log; exit 1; fi | |
- name: 'make' | |
run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" | |
- name: 'make check' | |
run: set -x; if ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" check; then :; else cat test-suite.log; exit 1; fi | |
- name: 'make distcheck' | |
run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" DISTCHECK_CONFIGURE_FLAGS="${COMMON_CONFIGURE_FLAGS}" distcheck | |
- name: 'make install' | |
run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" install | |
- name: 'make installcheck' | |
run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" installcheck | |
msys2: | |
runs-on: windows-latest | |
name: "msys2 ${{matrix.sys}} ${{matrix.env}} ${{matrix.autoconf}} ${{matrix.automake}}" | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
matrix: | |
include: | |
# - { sys: mingw64, env: x86_64 } | |
# - { sys: clang64, env: clang-x86_64 } | |
- { sys: ucrt64, env: ucrt-x86_64, autoconf: 2.69, automake: 1.14 } | |
- { sys: ucrt64, env: ucrt-x86_64, autoconf: 2.72, automake: 1.17 } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
update: true | |
install: >- | |
base-devel | |
autotools | |
- name: 'Select autotools versions' | |
run: | | |
echo WANT_AUTOCONF=${{matrix.autoconf}} >> $GITHUB_ENV | |
echo WANT_AUTOMAKE=${{matrix.automake}} >> $GITHUB_ENV | |
- name: 'autoreconf' | |
run: autoreconf -v -i -f | |
# - name: 'configure' | |
# run: if ./configure ${COMMON_CONFIGURE_FLAGS} --prefix=$PWD/__prefix; then :; else cat config.log; exit 1; fi | |
# - name: 'make' | |
# run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" | |
# - name: 'make check' | |
# run: set -x; if ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" check; then :; else cat test-suite.log; exit 1; fi | |
# - name: 'make distcheck' | |
# run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" DISTCHECK_CONFIGURE_FLAGS="${COMMON_CONFIGURE_FLAGS}" distcheck | |
# - name: 'make install' | |
# run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" install | |
# - name: 'make installcheck' | |
# run: set -x; ${ci_MAKE} CPPFLAGS="${OS_SPECIFIC_CPPFLAGS}" installcheck | |