ci: add Cygwin build workflow #4
Workflow file for this run
This file contains hidden or 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: Cygwin build | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| cygwin-build: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| shell: 'C:\tools\cygwin\bin\bash.EXE --login -eo pipefail -c "bash -lc \"$(/usr/bin/cygpath -au \"{0}\")\""' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| 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" | |
| /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 |