diff options
| author | Silvio Traversaro <pegua1@gmail.com> | 2019-02-14 08:37:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-14 08:37:16 +0100 |
| commit | 1530bed62922128ed0c2cdc436a55649ff9423fe (patch) | |
| tree | 63467203cdf48680078bcc4d8b1e49540f0cc385 | |
| parent | f1acf5d2fe8af6095e0f3a3061af9c23712651fd (diff) | |
| parent | 23d77533b3277a9f722e66484f3ed5b702c7bbda (diff) | |
| download | dlfcn-win32-1530bed62922128ed0c2cdc436a55649ff9423fe.tar.gz dlfcn-win32-1530bed62922128ed0c2cdc436a55649ff9423fe.tar.bz2 dlfcn-win32-1530bed62922128ed0c2cdc436a55649ff9423fe.zip | |
Merge pull request #48 from dlfcn-win32/appveyor-mingw-take-two
Add MinGW and MinGW-w64 builds to AppVeyor (take 2)
| -rw-r--r-- | .appveyor.yml | 89 |
1 files changed, 84 insertions, 5 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 92184b2..c269f59 100644 --- a/.appveyor.yml +++ b/.appveyor.yml | |||
| @@ -26,6 +26,66 @@ | |||
| 26 | 26 | ||
| 27 | environment: | 27 | environment: |
| 28 | matrix: | 28 | matrix: |
| 29 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 30 | GENERATOR: "MinGW Makefiles" | ||
| 31 | cc_path: 'C:\MinGW\bin' | ||
| 32 | BUILD_SHARED_LIBS: ON | ||
| 33 | |||
| 34 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 35 | GENERATOR: "MinGW Makefiles" | ||
| 36 | cc_path: 'C:\MinGW\bin' | ||
| 37 | BUILD_SHARED_LIBS: OFF | ||
| 38 | |||
| 39 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 40 | GENERATOR: "MinGW Makefiles" | ||
| 41 | cc_path: 'C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin' | ||
| 42 | BUILD_SHARED_LIBS: ON | ||
| 43 | |||
| 44 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 45 | GENERATOR: "MinGW Makefiles" | ||
| 46 | cc_path: 'C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin' | ||
| 47 | BUILD_SHARED_LIBS: OFF | ||
| 48 | |||
| 49 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 50 | GENERATOR: "MinGW Makefiles" | ||
| 51 | cc_path: 'C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin' | ||
| 52 | BUILD_SHARED_LIBS: ON | ||
| 53 | |||
| 54 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 55 | GENERATOR: "MinGW Makefiles" | ||
| 56 | cc_path: 'C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin' | ||
| 57 | BUILD_SHARED_LIBS: OFF | ||
| 58 | |||
| 59 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 60 | GENERATOR: "MinGW Makefiles" | ||
| 61 | cc_path: 'C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin' | ||
| 62 | BUILD_SHARED_LIBS: ON | ||
| 63 | |||
| 64 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 65 | GENERATOR: "MinGW Makefiles" | ||
| 66 | cc_path: 'C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin' | ||
| 67 | BUILD_SHARED_LIBS: OFF | ||
| 68 | |||
| 69 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 70 | GENERATOR: "MinGW Makefiles" | ||
| 71 | cc_path: 'C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin' | ||
| 72 | BUILD_SHARED_LIBS: ON | ||
| 73 | |||
| 74 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| 75 | GENERATOR: "MinGW Makefiles" | ||
| 76 | cc_path: 'C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin' | ||
| 77 | BUILD_SHARED_LIBS: OFF | ||
| 78 | |||
| 79 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
| 80 | GENERATOR: "MinGW Makefiles" | ||
| 81 | cc_path: 'C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin' | ||
| 82 | BUILD_SHARED_LIBS: ON | ||
| 83 | |||
| 84 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
| 85 | GENERATOR: "MinGW Makefiles" | ||
| 86 | cc_path: 'C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin' | ||
| 87 | BUILD_SHARED_LIBS: OFF | ||
| 88 | |||
| 29 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | 89 | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 30 | GENERATOR: "Visual Studio 15 2017" | 90 | GENERATOR: "Visual Studio 15 2017" |
| 31 | BUILD_SHARED_LIBS: ON | 91 | BUILD_SHARED_LIBS: ON |
| @@ -58,19 +118,38 @@ configuration: | |||
| 58 | - Debug | 118 | - Debug |
| 59 | - Release | 119 | - Release |
| 60 | 120 | ||
| 121 | matrix: | ||
| 122 | exclude: | ||
| 123 | - platform: x64 | ||
| 124 | cc_path: 'C:\MinGW\bin' | ||
| 125 | - platform: x64 | ||
| 126 | cc_path: 'C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin' | ||
| 127 | - platform: x64 | ||
| 128 | cc_path: 'C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin' | ||
| 129 | - platform: Win32 | ||
| 130 | cc_path: 'C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin' | ||
| 131 | - platform: Win32 | ||
| 132 | cc_path: 'C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin' | ||
| 133 | - platform: Win32 | ||
| 134 | cc_path: 'C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin' | ||
| 135 | |||
| 61 | before_build: | 136 | before_build: |
| 137 | # See https://help.appveyor.com/discussions/problems/3193-cmake-building-for-mingw-issue-with-git-shexe | ||
| 138 | - if "%generator%"=="MinGW Makefiles" (set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%") | ||
| 139 | - if not "%cc_path%"=="" (set "PATH=%PATH%;%cc_path%") | ||
| 140 | - if /I "%GENERATOR%" == "MinGW Makefiles" (set "GENERATOR_ARGS=") else (set "GENERATOR_ARGS=-A %PLATFORM%") | ||
| 62 | - md build | 141 | - md build |
| 63 | - cd build | 142 | - cd build |
| 64 | - cmake -G "%GENERATOR%" -A "%PLATFORM%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=install .. | 143 | - cmake -G "%GENERATOR%" %GENERATOR_ARGS% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=install .. |
| 65 | 144 | ||
| 66 | build: | 145 | build_script: |
| 67 | project: build/dlfcn-win32.sln | 146 | - cmake --build . --config "%CONFIGURATION%" |
| 68 | 147 | ||
| 69 | test_script: | 148 | test_script: |
| 70 | - ctest --output-on-failure --build-config "%CONFIGURATION%" | 149 | - ctest --output-on-failure --build-config "%CONFIGURATION%" |
| 71 | 150 | ||
| 72 | after_test: | 151 | after_test: |
| 73 | - cmake --build . --config "%CONFIGURATION%" --target INSTALL | 152 | - cmake --build . --config "%CONFIGURATION%" --target install |
| 74 | # Test also the use of dlfcn-win32 from an external CMake project | 153 | # Test also the use of dlfcn-win32 from an external CMake project |
| 75 | # Append the instllation directory of dlfcn-win32 to CMAKE_PREFIX_PATH to make sure that the CMake project is found | 154 | # Append the instllation directory of dlfcn-win32 to CMAKE_PREFIX_PATH to make sure that the CMake project is found |
| 76 | - set CMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/build/install | 155 | - set CMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/build/install |
| @@ -79,6 +158,6 @@ after_test: | |||
| 79 | - cd ../cmake-test | 158 | - cd ../cmake-test |
| 80 | - md build | 159 | - md build |
| 81 | - cd build | 160 | - cd build |
| 82 | - cmake -G "%GENERATOR%" -A "%PLATFORM%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DBUILD_TESTS=ON .. | 161 | - cmake -G "%GENERATOR%" %GENERATOR_ARGS% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% .. |
| 83 | - cmake --build . --config "%CONFIGURATION%" | 162 | - cmake --build . --config "%CONFIGURATION%" |
| 84 | - ctest --output-on-failure --build-config "%CONFIGURATION%" | 163 | - ctest --output-on-failure --build-config "%CONFIGURATION%" |
