Skip to content

Commit 41c876c

Browse files
committed
ci: add Cygwin build workflow
1 parent 58312ed commit 41c876c

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/cygwin-build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Cygwin build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
cygwin-build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Mark repo as safe for git
17+
shell: bash
18+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
19+
20+
- name: Set up Cygwin with build deps
21+
uses: egor-tensin/setup-cygwin@v4
22+
with:
23+
packages: >-
24+
autoconf
25+
automake
26+
libtool
27+
make
28+
pkg-config
29+
autoconf-archive
30+
gcc-core
31+
gettext-devel
32+
libstrophe-devel
33+
libncursesw-devel
34+
libglib2.0-devel
35+
libcurl-devel
36+
libreadline-devel
37+
libsqlite3-devel
38+
39+
- name: Show versions
40+
shell: bash
41+
run: |
42+
uname -a
43+
bash --version
44+
gcc --version
45+
pkg-config --version
46+
47+
- name: Autotools bootstrap
48+
shell: bash
49+
run: |
50+
if [ -x ./bootstrap.sh ]; then
51+
./bootstrap.sh
52+
else
53+
autoreconf -fi
54+
fi
55+
56+
- name: Configure
57+
shell: bash
58+
env:
59+
CYGWIN: winsymlinks:nativestrict
60+
run: ./configure
61+
62+
- name: Build
63+
shell: bash
64+
run: make -j2
65+
66+
- name: Run basic target checks
67+
shell: bash
68+
run: make -n install

0 commit comments

Comments
 (0)