Skip to content

Commit 0867ca3

Browse files
committed
Try to build with Cygwin
1 parent 6cfc6a0 commit 0867ca3

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/cygwin.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Cygwin
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'doc/**'
6+
- '**/man/*'
7+
- '**.md'
8+
- '**.rdoc'
9+
- '**/.document'
10+
- '.*.yml'
11+
pull_request:
12+
paths-ignore:
13+
- 'doc/**'
14+
- '**/man/*'
15+
- '**.md'
16+
- '**.rdoc'
17+
- '**/.document'
18+
- '.*.yml'
19+
merge_group:
20+
21+
concurrency:
22+
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
23+
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
24+
25+
permissions:
26+
contents: read
27+
28+
jobs:
29+
make:
30+
runs-on: windows-2022
31+
32+
if: >-
33+
${{!(false
34+
|| contains(github.event.head_commit.message, '[DOC]')
35+
|| contains(github.event.head_commit.message, 'Document')
36+
|| contains(github.event.pull_request.title, '[DOC]')
37+
|| contains(github.event.pull_request.title, 'Document')
38+
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
39+
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
40+
)}}
41+
42+
steps:
43+
- run: git config --global core.autocrlf input
44+
45+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
46+
47+
- name: Setup Cygwin
48+
uses: cygwin/cygwin-install-action@master
49+
with:
50+
packages: gcc-core make autoconf libtool openssl-devel libffi-devel zlib-devel
51+
52+
- name: configure
53+
run: |
54+
./autogen.sh
55+
./configure --disable-install-doc
56+
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o igncr -o pipefail {0}
57+
58+
- name: make all
59+
timeout-minutes: 30
60+
run: make
61+
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o igncr -o pipefail {0}

0 commit comments

Comments
 (0)