Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-09-01 16:07:26 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-01-13 20:03:59 +0300
commit6072dcfc346f6d5409bb8324dec1d7e8e08c22ef (patch)
tree7629d43e1a1b50f4a3d8342f72d9ec09a22eb2a8 /.github
parent09654548228e797af199ece1a24fc505fb43ee85 (diff)
Cygwin: CI: Run cygserver for tests
Note that cygserver must be run using the same cygwin1.DLL as test programs, as they communicate over a named pipe whose name contains the 'installation key' (which is a hash of the cygwin1.dll's path). We run cygserver via 'cmd' to avoid the special code which handles a cygwin parent process starting a cygwin child process, which assumes the same version of cygwin in both.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cygwin.yml16
1 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml
index ac167e748..10d0255ef 100644
--- a/.github/workflows/cygwin.yml
+++ b/.github/workflows/cygwin.yml
@@ -52,7 +52,8 @@ jobs:
fail-fast: false
matrix:
include:
- - pkgarch: x86_64
+ - target: x86_64-pc-cygwin
+ pkgarch: x86_64
name: Windows native ${{ matrix.pkgarch }}
steps:
@@ -105,6 +106,15 @@ jobs:
make &&
make install &&
(cd */newlib; make info man) &&
- (cd */newlib; make install-info install-man) &&
- (cd */winsup; make check || true)
+ (cd */newlib; make install-info install-man)
+ shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'
+
+ # test
+ - name: Test Cygwin
+ run: >-
+ export PATH=/usr/bin:$(cygpath ${SYSTEMROOT})/system32 &&
+ export MAKEFLAGS=-j$(nproc) &&
+ cd build &&
+ (export PATH=${{ matrix.target }}/winsup/testsuite/runtime:${PATH} && cmd /c $(cygpath -wa ${{ matrix.target }}/winsup/cygserver/cygserver) &) &&
+ (cd ${{ matrix.target }}/winsup; make check || true)
shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'