diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index eb72a3e..1a6f359 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -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