1111 strategy :
1212 matrix :
1313 config :
14- - { compiler: gcc, version: 8, build_type: Release, cppstd: 14, examples: ON }
15- - { compiler: gcc, version: 9, build_type: Release, cppstd: 17, examples: OFF }
14+ # Disabled due to apt-get update issues
15+ # - { compiler: gcc, version: 8, build_type: Release, cppstd: 14, examples: ON }
16+ # - { compiler: gcc, version: 9, build_type: Release, cppstd: 17, examples: OFF }
1617 - { compiler: gcc, version: 10, build_type: Debug, cppstd: 20, examples: ON }
1718 - { compiler: gcc, version: 11, build_type: Debug, cppstd: 20, examples: OFF }
1819 - { compiler: gcc, version: 12, build_type: Release, cppstd: 20, examples: ON }
3637 - uses : actions/checkout@v3
3738 - name : Setup
3839 run : |
39- apt-get update && apt-get install -y curl git
40+ apt-get update && apt-get install -y curl git zip unzip tar pkg-config
4041 CMAKE_VERSION="3.24.2"
4142 curl -sSL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh -o install-cmake.sh
4243 chmod +x install-cmake.sh
@@ -50,34 +51,18 @@ jobs:
5051 fi
5152 echo "CC=clang-${{ matrix.config.version }}" >> $GITHUB_ENV
5253 echo "CXX=clang++-${{ matrix.config.version }}" >> $GITHUB_ENV
53- - name : Dependencies
54- run : |
55- # Install json
56- curl -sSL https://github.com/nlohmann/json/archive/v3.11.2.tar.gz -o /tmp/json.tar.gz
57- tar zxf /tmp/json.tar.gz
58- pushd json-* && mkdir build && cd build && cmake -DJSON_BuildTests=OFF .. && make install && popd
59- # Install yaml-cpp
60- curl -sSL https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.7.0.tar.gz -o /tmp/yaml.tar.gz
61- tar zxf /tmp/yaml.tar.gz
62- pushd yaml-* && mkdir build && cd build && cmake -DYAML_BUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TESTS=OFF .. && make install && popd
63- # Install cxxopts
64- curl -sSL https://github.com/jarro2783/cxxopts/archive/v3.1.1.tar.gz -o /tmp/cxxopts.tar.gz
65- tar zxf /tmp/cxxopts.tar.gz
66- pushd cxxopts-* && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCXXOPTS_BUILD_EXAMPLES=OFF -DCXXOPTS_BUILD_TESTS=OFF .. && make install && popd
67- # Install toml11
68- curl -sSL https://github.com/ToruNiina/toml11/archive/v3.7.1.tar.gz -o /tmp/toml11.tar.gz
69- tar zxf /tmp/toml11.tar.gz
70- pushd toml11-* && mkdir build && cd build && cmake -Dtoml11_BUILD_TEST=OFF .. && make install && popd
71- # Install googletest
72- curl -sSL https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz -o /tmp/googletest.tar.gz
73- tar zxf /tmp/googletest.tar.gz
74- pushd googletest-* && mkdir build && cd build && cmake .. && make install && popd
75-
54+ - name : Setup vcpkg
55+ uses : lukka/run-vcpkg@v11
56+ with :
57+ vcpkgJsonGlob : ' **/vcpkg.json'
58+ vcpkgDirectory : ' ${{ runner.workspace }}/b/vcpkg'
59+ vcpkgGitCommitId : 120deac3062162151622ca4860575a33844ba10b
7660 - name : Build
7761 run : |
7862 mkdir -p build && cd build
7963 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
8064 cmake .. \
65+ -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \
8166 -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
8267 -DCMAKE_CXX_STANDARD=${{ matrix.config.cppstd }} \
8368 -DBUILD_EXAMPLES=${{ matrix.config.example }} \
0 commit comments