Adding manifest file #20

Merged
kdeng00 merged 8 commits from vcpkg_building into master 2023-08-04 21:05:35 -04:00
4 changed files with 52 additions and 34 deletions
+42 -33
View File
@@ -1,41 +1,50 @@
name: CMake name: hosted-ninja_multi-vcpkg_submod-triplet-cacheoff
on: [push, workflow_dispatch]
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs: jobs:
build: job:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. name: ${{ matrix.os }}-${{ github.workflow }}
# You can convert this to a matrix build if you need cross-platform coverage. runs-on: ${{ matrix.os }}
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix strategy:
runs-on: ubuntu-latest fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: windows-latest
triplet: x64-windows
- os: ubuntu-latest
triplet: x64-linux
- os: macos-latest
triplet: x64-osx
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
- name: run-vcpkg submodules: true
uses: lukka/run-vcpkg@v11.1
- uses: lukka/get-cmake@latest
- name: dir
run: find $RUNNER_WORKSPACE
shell: bash
- name: Configure CMake - name: Setup vcpkg
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. uses: lukka/run-vcpkg@main
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type id: runvcpkg
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} with:
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json'
- name: Build - name: List $RUNNER_WORKSPACE before build
# Build your program with the given configuration run: find $RUNNER_WORKSPACE
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} shell: bash
- name: Prints output of run-vcpkg's action.
- name: Test run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
working-directory: ${{github.workspace}}/build # - name: Build
# Execute tests defined by the CMake configuration. # Build your program with the given configuration
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail # run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: ctest -C ${{env.BUILD_TYPE}}
- name: List $RUNNER_WORKSPACE after build
run: find $RUNNER_WORKSPACE
shell: bash
+1 -1
View File
@@ -1,3 +1,3 @@
[submodule "3rdparty/vcpkg"] [submodule "3rdparty/vcpkg"]
path = 3rdparty/vcpkg path = vcpkg
url = https://github.com/microsoft/vcpkg url = https://github.com/microsoft/vcpkg
View File
+9
View File
@@ -0,0 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
"nlohmann-json",
"curl",
"openssl",
"cpr"
]
}