-
-
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.
added action for installing python (needed on windos)
- Loading branch information
Showing
5 changed files
with
83 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 |
---|---|---|
|
@@ -22,10 +22,12 @@ jobs: | |
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest, ubuntu-20.04, | ||
macos-latest, macos-11, | ||
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 | ||
steps: | ||
|
@@ -48,20 +50,30 @@ jobs: | |
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="" \ | ||
-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="compression" \ | ||
-DCROW_FEATURES="ssl;compression" \ | ||
-DCROW_AMALGAMATE=ON \ | ||
-DCROW_BUILD_TESTS=ON \ | ||
-B build | ||
|
@@ -85,26 +97,26 @@ jobs: | |
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: ctest --output-on-failure -C ${{env.BUILD_TYPE}} | ||
|
||
- name: Generate coverage report | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | ||
echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \ | ||
export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \ | ||
git clone https://github.com/CrowCpp/cpp-coveralls.git && \ | ||
cd cpp-coveralls && \ | ||
pip3 install . --no-input && \ | ||
cd .. && \ | ||
coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp --dump coveralls.json | ||
shell: bash | ||
#- name: Generate coverage report | ||
# if: matrix.os == 'ubuntu-latest' | ||
# run: | | ||
# export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | ||
# echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \ | ||
# export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \ | ||
# git clone https://github.com/CrowCpp/cpp-coveralls.git && \ | ||
# cd cpp-coveralls && \ | ||
# pip3 install . --no-input && \ | ||
# cd .. && \ | ||
# coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp --dump coveralls.json | ||
# 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