Adding manifest file #20
+40
-31
@@ -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:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
- name: run-vcpkg
|
- uses: lukka/get-cmake@latest
|
||||||
uses: lukka/run-vcpkg@v11.1
|
- name: dir
|
||||||
|
run: find $RUNNER_WORKSPACE
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Setup vcpkg
|
||||||
|
uses: lukka/run-vcpkg@main
|
||||||
|
id: runvcpkg
|
||||||
|
with:
|
||||||
|
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json'
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: List $RUNNER_WORKSPACE before build
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
run: find $RUNNER_WORKSPACE
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
shell: bash
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
- name: Prints output of run-vcpkg's action.
|
||||||
|
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
|
||||||
- name: Build
|
# - name: Build
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -C ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
|
- name: List $RUNNER_WORKSPACE after build
|
||||||
|
run: find $RUNNER_WORKSPACE
|
||||||
|
shell: bash
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
||||||
|
"dependencies": [
|
||||||
|
"nlohmann-json",
|
||||||
|
"curl",
|
||||||
|
"openssl",
|
||||||
|
"cpr"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user