mirror of https://github.com/CrowCpp/Crow.git
added asio vcpk build and windows to build platforms
removed windows2019 build, chocolatey installs
This commit is contained in:
parent
3cb78413e0
commit
727e6fcff0
|
@ -1,5 +1,6 @@
|
||||||
name: Build and test (cmake based build)
|
name: Build and test (cmake based build)
|
||||||
|
|
||||||
|
#on: push
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
@ -17,14 +18,14 @@ jobs:
|
||||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, ubuntu-20.04,
|
os: [ ubuntu-latest, ubuntu-20.04,
|
||||||
macos-latest, macos-11
|
macos-latest, macos-11,
|
||||||
|
windows-latest
|
||||||
]
|
]
|
||||||
# ubuntu-18.04 does not work due to compile error on asio
|
# ubuntu-18.04 does not work due to compile error on asio
|
||||||
# windows-latest, windows-2019 - wip missing asio lib install
|
# windows-2019 not included to spare free minutes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Prepare dependencies
|
- name: Prepare dependencies
|
||||||
|
@ -33,13 +34,11 @@ jobs:
|
||||||
sudo apt-get update && \
|
sudo apt-get update && \
|
||||||
sudo apt-get install -yq \
|
sudo apt-get install -yq \
|
||||||
libasio-dev \
|
libasio-dev \
|
||||||
cmake \
|
cmake
|
||||||
graphviz doxygen
|
|
||||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
vcpkg install;
|
VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install
|
||||||
choco install graphviz doxygen.install
|
|
||||||
elif [ "$RUNNER_OS" == "macOS" ]; then
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
brew install asio graphviz doxygen
|
brew install asio
|
||||||
else
|
else
|
||||||
echo "$RUNNER_OS not supported"
|
echo "$RUNNER_OS not supported"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -48,13 +47,11 @@ jobs:
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
mkdir build;
|
cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -B build
|
||||||
cd build;
|
else
|
||||||
cmake .. -DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake" ..
|
|
||||||
else
|
|
||||||
cmake -B build
|
cmake -B build
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Build
|
- name: Build
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "crow-examples",
|
"name": "crow",
|
||||||
"version-string": "master",
|
"version-string": "master",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"asio",
|
"asio",
|
||||||
|
|
Loading…
Reference in New Issue