-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
on all platforms added CROW_FEATURES ssl, compression and needed libs…
… to prerequisites general tests are now enabled on MSVC, mustachetests disabled due to some strange bug in python script (will be done later)
- Loading branch information
Showing
5 changed files
with
101 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: Build and test | ||
|
||
#on: push | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
on: push | ||
#on: | ||
# push: | ||
# branches: [ "master" ] | ||
# pull_request: | ||
# branches: [ "master" ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
|
@@ -22,9 +22,11 @@ jobs: | |
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest, ubuntu-20.04, | ||
macos-latest, macos-11, | ||
windows-latest | ||
os: [ ubuntu-latest, | ||
windows-latest, | ||
ubuntu-20.04, | ||
macos-latest, | ||
macos-11 | ||
] | ||
# ubuntu-18.04 does not work due to compile error on asio | ||
# windows-2019 not included to spare free minutes | ||
|
@@ -36,27 +38,51 @@ jobs: | |
sudo apt-get update && \ | ||
sudo apt-get install -yq \ | ||
libasio-dev \ | ||
libssl-dev zlib1g-dev \ | ||
cmake | ||
elif [ "$RUNNER_OS" == "Windows" ]; then | ||
VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install | ||
elif [ "$RUNNER_OS" == "macOS" ]; then | ||
brew install asio | ||
brew install asio openssl zlib | ||
else | ||
echo "$RUNNER_OS not supported" | ||
exit 1 | ||
fi | ||
shell: bash | ||
|
||
#- name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# # Semantic version range syntax or exact version of a Python version | ||
# python-version: '3.x' | ||
# # You can test your matrix by printing the current Python version | ||
|
||
#- name: Display Python version | ||
# run: python -c "import sys; print(sys.version)" | ||
|
||
- name: Configure CMake | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
cmake \ | ||
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake \ | ||
-DCROW_FEATURES="ssl;compression" \ | ||
-DCROW_AMALGAMATE=ON \ | ||
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake \ | ||
-DCROW_FEATURES="ssl;compression" \ | ||
-DCROW_AMALGAMATE=ON \ | ||
-DCROW_BUILD_TESTS=ON \ | ||
-B build | ||
elif [ "$RUNNER_OS" == "macOS" ]; then | ||
LDFLAGS="-L/usr/local/opt/[email protected]/lib" \ | ||
CPPFLAGS="-I/usr/local/opt/[email protected]/include" \ | ||
cmake \ | ||
-DCROW_FEATURES="ssl;compression" \ | ||
-DCROW_AMALGAMATE=ON \ | ||
-DCROW_BUILD_TESTS=ON \ | ||
-B build | ||
else | ||
cmake \ | ||
-DCROW_FEATURES="ssl;compression" \ | ||
-DCROW_AMALGAMATE=ON \ | ||
-DCROW_BUILD_TESTS=ON \ | ||
-B build | ||
else | ||
cmake -B build | ||
fi | ||
shell: bash | ||
|
||
|
@@ -85,12 +111,12 @@ jobs: | |
shell: bash | ||
|
||
|
||
- name: Save report | ||
uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
name: coveralls.json | ||
path: coveralls.json | ||
#- name: Save report | ||
# uses: actions/upload-artifact@v3 | ||
# if: matrix.os == 'ubuntu-latest' | ||
# with: | ||
# name: coveralls.json | ||
# path: coveralls.json | ||
|
||
|
||
#- name: Package | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters