Skip to content

ci: add Cygwin build workflow #3

ci: add Cygwin build workflow

ci: add Cygwin build workflow #3

Workflow file for this run

name: Cygwin build
on:
pull_request:
push:
branches: [ master ]
jobs:
cygwin-build:
runs-on: windows-latest
# Run ALL steps via Cygwin's bash (not Git Bash / CMD)
defaults:
run:
shell: 'C:\tools\cygwin\bin\bash.EXE --login -eo pipefail -c "{0}"'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# avoid CRLF issues inside Cygwin
fetch-depth: 0
- name: Set up Cygwin with build deps
uses: egor-tensin/setup-cygwin@v4
with:
packages: >-
autoconf
automake
libtool
make
pkg-config
autoconf-archive
gcc-core
gettext-devel
libstrophe-devel
libncursesw-devel
libglib2.0-devel
libcurl-devel
libreadline-devel
libsqlite3-devel
- name: Sanity check Cygwin toolchain
run: |
echo "PATH=$PATH"
type -a /usr/bin/uname || true
/usr/bin/uname -a
/usr/bin/gcc --version
/usr/bin/pkg-config --version
- name: Autotools bootstrap
run: |
git config --global core.autocrlf false
if [ -x ./bootstrap.sh ]; then
./bootstrap.sh
else
autoreconf -fi
fi
- name: Configure
env:
CYGWIN: winsymlinks:nativestrict
run: ./configure
- name: Build
run: make -j2
# keep tests for later; first make the build go green
# - name: Test
# run: make check -j2