@@ -68,85 +68,89 @@ jobs:
68
68
export NCPU=2
69
69
../configure.sh --ndk /usr/local/lib/android/sdk/ndk-bundle
70
70
displayName: 'Build for Android'
71
- # - job: MacOS_Homebrew
72
- # pool:
73
- # vmImage: 'macOS-latest'
74
- # steps:
75
- # - script: brew install boost openssl ninja
76
- # displayName: Brew install dependencies
77
- # - script: |
78
- # mkdir build.debug
79
- # mkdir build.release
80
- # mkdir build.release.static
81
- # displayName: Make Build Directories
82
- # - task: CMake@1
83
- # inputs:
84
- # workingDirectory: 'build.debug'
85
- # cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug ..'
86
- # - task: CMake@1
87
- # inputs:
88
- # workingDirectory: 'build.release'
89
- # cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release ..'
90
- # - task: CMake@1
91
- # inputs:
92
- # workingDirectory: 'build.release.static'
93
- # cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..'
94
- # - script: |
95
- # cd build.debug
96
- # ninja
97
- # displayName: 'Run ninja, debug'
98
- # - script: |
99
- # cd build.debug/Release/Binaries
100
- # ./test_runner *test.dylib
101
- # displayName: 'Run tests, debug'
102
- # - script: |
103
- # cd build.release
104
- # ninja
105
- # displayName: 'Run ninja, release'
106
- # - script: |
107
- # cd build.release/Release/Binaries
108
- # ./test_runner *test.dylib
109
- # displayName: 'Run tests, release'
110
- # - script: |
111
- # cd build.release.static
112
- # ninja
113
- # displayName: 'Run ninja, release static'
114
- # - job: MacOS_Vcpkg
115
- # pool:
116
- # vmImage: 'macOS-latest'
117
- # steps:
118
- # - script: |
119
- # ./vcpkg/bootstrap-vcpkg.sh
120
- # ./vcpkg/vcpkg install zlib openssl boost-system boost-date-time boost-regex websocketpp boost-thread boost-filesystem boost-random boost-chrono boost-interprocess brotli --vcpkg-root ./vcpkg
121
- # displayName: Vcpkg install dependencies
122
- # - script: |
123
- # mkdir build.debug
124
- # mkdir build.release
125
- # displayName: Make Build Directories
126
- # - task: CMake@1
127
- # inputs:
128
- # workingDirectory: 'build.debug'
129
- # cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
130
- # - task: CMake@1
131
- # inputs:
132
- # workingDirectory: 'build.release'
133
- # cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
134
- # - script: |
135
- # cd build.debug
136
- # ninja
137
- # displayName: 'Run ninja debug'
138
- # - script: |
139
- # cd build.debug/Release/Binaries
140
- # ./test_runner *test.dylib
141
- # displayName: 'Run Tests debug'
142
- # - script: |
143
- # cd build.release
144
- # ninja
145
- # displayName: 'Run ninja, release'
146
- # - script: |
147
- # cd build.release/Release/Binaries
148
- # ./test_runner *test.dylib
149
- # displayName: 'Run tests, release'
71
+ - job : MacOS_Homebrew
72
+ pool :
73
+ vmImage : ' macOS-latest'
74
+ steps :
75
+ - script : brew install boost openssl ninja
76
+ displayName : Brew install dependencies
77
+ - script : git submodule update --init Release/libs/websocketpp
78
+ displayName : Checkout websocketpp submodule
79
+ - script : |
80
+ mkdir build.debug
81
+ mkdir build.release
82
+ mkdir build.release.static
83
+ displayName: Make Build Directories
84
+ - task : CMake@1
85
+ inputs :
86
+ workingDirectory : ' build.debug'
87
+ cmakeArgs : ' -G Ninja -DCMAKE_BUILD_TYPE=Debug ..'
88
+ - task : CMake@1
89
+ inputs :
90
+ workingDirectory : ' build.release'
91
+ cmakeArgs : ' -G Ninja -DCMAKE_BUILD_TYPE=Release ..'
92
+ - task : CMake@1
93
+ inputs :
94
+ workingDirectory : ' build.release.static'
95
+ cmakeArgs : ' -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..'
96
+ - script : |
97
+ cd build.debug
98
+ ninja
99
+ displayName: 'Run ninja, debug'
100
+ - script : |
101
+ cd build.debug/Release/Binaries
102
+ ./test_runner *test.dylib
103
+ displayName: 'Run tests, debug'
104
+ - script : |
105
+ cd build.release
106
+ ninja
107
+ displayName: 'Run ninja, release'
108
+ - script : |
109
+ cd build.release/Release/Binaries
110
+ ./test_runner *test.dylib
111
+ displayName: 'Run tests, release'
112
+ - script : |
113
+ cd build.release.static
114
+ ninja
115
+ displayName: 'Run ninja, release static'
116
+ - job : MacOS_Vcpkg
117
+ pool :
118
+ vmImage : ' macOS-latest'
119
+ steps :
120
+ - script : git submodule update --init vcpkg
121
+ displayName : Checkout vcpkg submodule
122
+ - script : |
123
+ ./vcpkg/bootstrap-vcpkg.sh
124
+ ./vcpkg/vcpkg install zlib openssl boost-system boost-date-time boost-regex websocketpp boost-thread boost-filesystem boost-random boost-chrono boost-interprocess brotli --vcpkg-root ./vcpkg
125
+ displayName: Vcpkg install dependencies
126
+ - script : |
127
+ mkdir build.debug
128
+ mkdir build.release
129
+ displayName: Make Build Directories
130
+ - task : CMake@1
131
+ inputs :
132
+ workingDirectory : ' build.debug'
133
+ cmakeArgs : ' -G Ninja -DCMAKE_MAKE_PROGRAM=$(Build.SourcesDirectory)/vcpkg/downloads/tools/ninja-1.10.0-osx/ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
134
+ - task : CMake@1
135
+ inputs :
136
+ workingDirectory : ' build.release'
137
+ cmakeArgs : ' -G Ninja -DCMAKE_MAKE_PROGRAM=$(Build.SourcesDirectory)/vcpkg/downloads/tools/ninja-1.10.0-osx/ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
138
+ - script : |
139
+ cd build.debug
140
+ $(Build.SourcesDirectory)/vcpkg/downloads/tools/ninja-1.10.0-osx/ninja
141
+ displayName: 'Run ninja debug'
142
+ - script : |
143
+ cd build.debug/Release/Binaries
144
+ ./test_runner *test.dylib
145
+ displayName: 'Run Tests debug'
146
+ - script : |
147
+ cd build.release
148
+ $(Build.SourcesDirectory)/vcpkg/downloads/tools/ninja-1.10.0-osx/ninja
149
+ displayName: 'Run ninja, release'
150
+ - script : |
151
+ cd build.release/Release/Binaries
152
+ ./test_runner *test.dylib
153
+ displayName: 'Run tests, release'
150
154
# - job: MacOS_iOS
151
155
# pool:
152
156
# vmImage: 'macOS-latest'
0 commit comments