updated cmake for jsoncpp #9
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
name: build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install vcpkg | |
run: git clone https://github.com/Microsoft/vcpkg.git && cd vcpkg && ./bootstrap-vcpkg.sh && ./vcpkg integrate install && ./vcpkg install jsoncpp | |
- name: Install cURL | |
run: sudo apt install libcurl4-openssl-dev | |
- name: Install Jsoncpp | |
run: sudo apt install libjsoncpp-dev | |
- name: Clone Catch2 | |
run: git clone https://github.com/catchorg/Catch2.git | |
- name: Build Catch2 | |
run: cd Catch2 && cmake -Bbuild -H. -DBUILD_TESTING=OFF | |
- name: Install Catch2 | |
run: cd Catch2 && sudo cmake --build build/ --target install | |
- name: Create build directory | |
run: mkdir build | |
- name: Configure Cmake | |
run: cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=$HOME/work/riot-cpp/riot-cpp/vcpkg/scripts/buildsystems/vcpkg.cmake | |
- name: Compilation Check | |
run: cd build && make |