Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshad committed Oct 2, 2024
1 parent 2eec5f7 commit 5553f3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: CMake on multiple platforms

on: workflow_dispatch

env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -44,13 +47,14 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo ${{ env.VCPKG_ROOT }}
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand All @@ -60,6 +64,7 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
-S ${{ github.workspace }}
- name: Build
Expand Down

0 comments on commit 5553f3d

Please sign in to comment.