Skip to content

Commit

Permalink
Update cmake-single-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailuReeves authored Dec 12, 2023
1 parent af9d811 commit 8c48eaf
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,26 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Cache vcpkg installed packages
uses: actions/cache@v3
with:
path: ${{ env.VCPKG_DIR }}/installed
key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/CMakeLists.txt') }} # Adjust this line as needed

- name: Install vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/CMakeLists.txt') }}
- name: Bootstrap vcpkg
shell: cmd
run: |
if not exist "${{ env.VCPKG_DIR }}" (
if not exist "${{ env.VCPKG_DIR }}\vcpkg.exe" (
git clone https://github.com/microsoft/vcpkg.git ${{ env.VCPKG_DIR }}
${{ env.VCPKG_DIR }}\bootstrap-vcpkg.bat
)
- name: Install czmq
shell: cmd
run: |
${{ env.VCPKG_DIR }}\vcpkg install czmq
- name: List installed packages
shell: cmd
run: |
${{ env.VCPKG_DIR }}\vcpkg list
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}\build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DIR }}\scripts\buildsystems\vcpkg.cmake
Expand Down

0 comments on commit 8c48eaf

Please sign in to comment.