File tree Expand file tree Collapse file tree 1 file changed +89
-0
lines changed
Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Cygwin
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ cygwin-build :
11+ runs-on : windows-latest
12+ env :
13+ CYGWIN : winsymlinks:nativestrict
14+
15+ # Use a wrapper that:
16+ # - converts the temp step path ({0}) and the workspace to POSIX with cygpath
17+ # - strips CRLF from the temporary script
18+ # - sets igncr and runs the script under Cygwin bash
19+ defaults :
20+ run :
21+ shell : >
22+ C:\tools\cygwin\bin\bash.EXE --login -eo pipefail -c
23+ "p=$(/usr/bin/cygpath -au '{0}');
24+ w=$(/usr/bin/cygpath -au '${{ github.workspace }}');
25+ /usr/bin/sed -i 's/\r$//' \"$p\" || true;
26+ set -o igncr;
27+ cd \"$w\" || (/usr/bin/pwd; /usr/bin/ls -la; exit 2);
28+ /usr/bin/bash -leo pipefail \"$p\""
29+
30+ steps :
31+ - name : Checkout repository
32+ uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+
36+ - name : Set up Cygwin with build dependencies
37+ uses : egor-tensin/setup-cygwin@v4
38+ with :
39+ packages : >-
40+ autoconf
41+ automake
42+ libtool
43+ make
44+ pkg-config
45+ autoconf-archive
46+ gcc-core
47+ gettext-devel
48+ git
49+ libncursesw-devel
50+ libglib2.0-devel
51+ libcurl-devel
52+ libreadline-devel
53+ libsqlite3-devel
54+ libexpat-devel
55+
56+ - name : Build and install libstrophe from source
57+ run : |
58+ cd "$GITHUB_WORKSPACE"
59+ mkdir -p deps && cd deps
60+ git clone --depth 1 https://github.com/strophe/libstrophe.git
61+ cd libstrophe
62+ autoreconf -i
63+ ./configure --prefix=$PWD/install
64+ make -j2 install
65+
66+ - name : Autotools bootstrap
67+ run : |
68+ cd "$GITHUB_WORKSPACE"
69+ if [ -x ./bootstrap.sh ]; then
70+ ./bootstrap.sh
71+ else
72+ autoreconf -fi
73+ fi
74+
75+ - name : Configure
76+ env :
77+ # ensure pkg-config can find libstrophe we built above
78+ PKG_CONFIG_PATH : ${{ github.workspace }}/deps/libstrophe/install/lib/pkgconfig:$PKG_CONFIG_PATH
79+ run : |
80+ cd "$GITHUB_WORKSPACE"
81+ ./configure
82+
83+ - name : Build
84+ run : |
85+ cd "$GITHUB_WORKSPACE"
86+ make -j2
87+
88+ - name : Run tests
89+ run : make check
You can’t perform that action at this time.
0 commit comments