-
Notifications
You must be signed in to change notification settings - Fork 55
50 lines (42 loc) · 1.28 KB
/
cygwin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "Cygwin build"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 7 * * 2'
jobs:
build:
runs-on: windows-latest
name: Build on ${{ matrix.platform }}
strategy:
matrix:
platform: [x86, x86_64]
steps:
- name: Git - auto-converting CRLF line endings into LF
run: git config --global core.autocrlf input
- name: Repository checkout
uses: actions/checkout@v3
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v3 # see https://github.com/cygwin/cygwin-install-action
with:
platform: ${{ matrix.platform }}
install-dir: C:\cygwin
packages: git grep make libncurses-devel gcc-core gcc-g++ automake autoconf autoconf-archive libtool pkgconf cppunit
- name: Test on Cygwin environment
run: |
uname -a
whoami
pwd
cygcheck -c -d # Show installed Cygwin packages
g++ --version
cd "$(cygpath -u $WORKSPACE_PATH)"
autoreconf --force --install --verbose --warnings=all
automake --add-missing --copy
./configure --prefix=/usr
make -j10
shell: C:\cygwin\bin\bash.exe --login '{0}'
env:
WORKSPACE_PATH: "${{ github.workspace }}"
SHELLOPTS: igncr