-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (42 loc) · 1.74 KB
/
test-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
name: test-cygwin
on:
push:
branches:
- '**'
tags-ignore:
- '*'
pull_request:
jobs:
imager:
runs-on: windows-latest
timeout-minutes: 10
steps:
- run: git config --global core.autocrlf false
- name: Set up Cygwin and install dependencies
shell: cmd
run: |
choco install cygwin --params="/InstallDir:%GITHUB_WORKSPACE%\cygwin" -r
choco install cyg-get
cyg-get cygwin-devel gcc-core gcc gcc-g++ make w32api-headers w32api-runtime binutils libtool git ccache perl libcrypt-devel libpng-devel libfreetype-devel libgif-devel libtiff-devel libjpeg-devel pkg-config libnsl-devel
- name: Check out using Cygwin git, to ensure correct file permissions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: cmd
run: |
path %GITHUB_WORKSPACE%\cygwin\bin;%GITHUB_WORKSPACE%\cygwin\usr\bin
sh -c "mkdir -p ~; cd ~; echo \"$GITHUB_REPOSITORY\"; git clone -qn \"https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY\" work ; cd work ; if [ \"$GITHUB_EVENT_NAME\" = pull_request ] ; then git fetch origin \"$GITHUB_REF\" ; fi ; git checkout \"$GITHUB_SHA\""
- name: configure
shell: cmd
run: |
path %GITHUB_WORKSPACE%\cygwin\bin;%GITHUB_WORKSPACE%\cygwin\usr\bin
sh -c "cd ~/work; perl Makefile.PL --verbose"
- name: build
shell: cmd
run: |
path %GITHUB_WORKSPACE%\cygwin\bin;%GITHUB_WORKSPACE%\cygwin\usr\bin
sh -c "cd ~/work; make -j2"
- name: test
shell: cmd
run: |
path %GITHUB_WORKSPACE%\cygwin\bin;%GITHUB_WORKSPACE%\cygwin\usr\bin
sh -c "cd ~/work; HARNESS_OPTIONS=j2 make test"