Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c97bfbe

Browse files
committed
appveyor: add mingw and cygwin
But disable mingw, until I can debug the remaining errors.
1 parent b3debb5 commit c97bfbe

File tree

2 files changed

+58
-7
lines changed

2 files changed

+58
-7
lines changed

.git-rr-cache

Submodule .git-rr-cache updated 50 files

appveyor.yml

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,34 @@ version: 5.27.0.{build}
55
#os: Default Azure
66
#build:
77
# verbosity: minimal
8+
max_jobs: 4
89
platform:
910
- x64
1011
- x86
1112
environment:
1213
matrix:
1314
- MSVC_VERSION: 12
14-
#- MSVC_VERSION: 10
15-
#- MSVC_VERSION: 14
15+
#- MINGW: 1
16+
- CYGWIN: 1
17+
- MSVC_VERSION: 10
18+
- MSVC_VERSION: 14
19+
matrix:
20+
exclude:
21+
- platform: x86
22+
MSVC_VERSION: 10
23+
- platform: x86
24+
MSVC_VERSION: 14
25+
allow_failures:
26+
- MINGW: 1
1627
clone_depth: 1
1728
branches:
1829
only:
1930
- master
2031
- /^smoke/
2132
- /^maint-/
2233
- /^cperl-/
34+
- /^win/
35+
2336
init:
2437
- git config --global core.autocrlf input
2538
# Disable popups as they hang the build as there is nobody to click on the OK button...
@@ -36,11 +49,38 @@ init:
3649
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
3750
- reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
3851
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
52+
- if "%PLATFORM%"=="x64" set MSYS64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64
53+
#- if "%PLATFORM%"=="x86" set MSYS64=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32
54+
- if "%PLATFORM%"=="x86" set MSYS64=C:\MinGW
55+
- if "%MINGW%"=="1" set PROCESSOR_ARCHITECTURE=%PLATFORM%
56+
- if "%MINGW%"=="1" set MKOPT="CFG=Debug"
57+
- if "%PLATFORM%"=="x64" set PROCESSOR_ARCHITECTURE=AMD64
58+
- if "%PLATFORM%"=="x64" set CCLIBDIR=%MSYS64%\lib
59+
- if "%MINGW%"=="1" set PATH=%MSYS64%\bin;c:\Windows\system32;c:\Windows;C:\MinGW\msys\1.0\bin;c:\Windows\system32\Wbem;C:\MinGW\bin;C:\Program Files\Git\cmd
60+
#- set
61+
#- dir C:\mingw-w64\
62+
#- dir C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1
63+
#- if "%MINGW%"=="1" dir %MSYS64%\bin
64+
- if "%MINGW%"=="1" copy %MSYS64%\bin\mingw32-make.exe %MSYS64%\bin\make.exe
65+
- if "%MINGW%"=="1" copy %MSYS64%\bin\mingw32-make.exe %MSYS64%\bin\gmake.exe
66+
- if "%PLATFORM%"=="x86" set WIN64=undef
67+
- set CYGR=c:\cygwin
68+
- if "%PLATFORM%"=="x64" set CYGR=c:\cygwin64
69+
- if "%CYGWIN%"=="1" set PATH=%CYGR%\bin;c:\Windows\system32;c:\Windows;c:\Windows\system32\Wbem
3970

40-
build: off
71+
build_script:
72+
- if "%MINGW%"=="1" make -s -C win32 %MKOPT%
73+
- if "%CYGWIN%"=="1" sh ./Configure -des -Dusedevel & make
4174

4275
test_script:
43-
- 't\appveyor-smoke.bat'
76+
- ps: if ($env:MSVC_VERSION -gt 0) {
77+
$A = Start-Process -FilePath .\t\appveyor-smoke.bat -Wait -passthru;$a.ExitCode }
78+
- if "%CYGWIN%"=="1" make -s test
79+
- if "%MINGW%"=="1" make -s -C win32 %MKOPT% test
80+
81+
before_deploy:
82+
- if "%CYGWIN%"=="1" %CYGR%\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER; make install DESTDIR=/cygdrive/c/projects/cperl/inst && tar cvfj ${APPVEYOR_REPO_TAG_NAME}-cygwin-${platform}.tar.bz2 -C /cygdrive/c/projects/cperl/inst"
83+
- if "%MINGW%"=="1" sh -lc "cd $APPVEYOR_BUILD_FOLDER; make install DESTDIR=/c/projects/cperl/inst && tar cvfj ${APPVEYOR_REPO_TAG_NAME}-mingw-${platform}.tar.bz2 -C /c/projects/cperl/inst"
4484

4585
# appveyor cannot glob * in names
4686
artifacts:
@@ -56,6 +96,18 @@ artifacts:
5696
- path: $(APPVEYOR_REPO_TAG_NAME)-win64.exe
5797
name: tagged-64
5898
type: exe
99+
- path: $(APPVEYOR_REPO_TAG_NAME)-cygwin-x86.tar.bz2
100+
name: cygwin-32
101+
type: tar
102+
- path: $(APPVEYOR_REPO_TAG_NAME)-cygwin-x64.tar.bz2
103+
name: cygwin-64
104+
type: tar
105+
- path: $(APPVEYOR_REPO_TAG_NAME)-mingw-x86.tar.bz2
106+
name: mingw-32
107+
type: tar
108+
- path: $(APPVEYOR_REPO_TAG_NAME)-mingw-x64.tar.bz2
109+
name: mingw-64
110+
type: tar
59111

60112
deploy:
61113
- provider: GitHub
@@ -75,12 +127,11 @@ deploy:
75127
description: 'cperl windows sfx tagged (msvcr120.dll)'
76128
auth_token:
77129
secure: AsIAOIgCJX0QhrUKal2V00aaB5nRWtmtFTFeDVsGnbJLeEQpv9avUp0HT1cA8bNs
78-
artifact: tagged-32,tagged-64
130+
artifact: tagged-32,tagged-64,cygwin-32,cygwin-64,mingw-32,mingw-64
79131
draft: true
80132
force_update: true
81133
on:
82134
appveyor_repo_tag: true
83-
MSVC_VERSION: 12
84135

85136
notifications:
86137
- provider: Email

0 commit comments

Comments
 (0)