File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change 99 cygwin-build :
1010 runs-on : windows-latest
1111
12+ # Run ALL steps via Cygwin's bash (not Git Bash / CMD)
13+ defaults :
14+ run :
15+ shell : ' C:\tools\cygwin\bin\bash.EXE --login -eo pipefail -c "{0}"'
16+
1217 steps :
1318 - name : Checkout
1419 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"
20+ with :
21+ # avoid CRLF issues inside Cygwin
22+ fetch-depth : 0
1923
2024 - name : Set up Cygwin with build deps
2125 uses : egor-tensin/setup-cygwin@v4
@@ -36,33 +40,31 @@ jobs:
3640 libreadline-devel
3741 libsqlite3-devel
3842
39- - name : Show versions
40- shell : bash
43+ - name : Sanity check Cygwin toolchain
4144 run : |
42- uname -a
43- bash --version
44- gcc --version
45- pkg-config --version
45+ echo "PATH=$PATH"
46+ type -a /usr/bin/uname || true
47+ /usr/bin/uname -a
48+ /usr/bin/gcc --version
49+ /usr/bin/pkg-config --version
4650
4751 - name : Autotools bootstrap
48- shell : bash
4952 run : |
53+ git config --global core.autocrlf false
5054 if [ -x ./bootstrap.sh ]; then
5155 ./bootstrap.sh
5256 else
5357 autoreconf -fi
5458 fi
5559
5660 - name : Configure
57- shell : bash
5861 env :
5962 CYGWIN : winsymlinks:nativestrict
6063 run : ./configure
6164
6265 - name : Build
63- shell : bash
6466 run : make -j2
6567
66- - name : Run basic target checks
67- shell : bash
68- run : make -n install
68+ # keep tests for later; first make the build go green
69+ # - name: Test
70+ # run: make check -j2
You can’t perform that action at this time.
0 commit comments