Skip to content

Commit

Permalink
Set up a vcpkg binary cache using GitHub Actions Cache (#174)
Browse files Browse the repository at this point in the history
* Try to use cache

* Oops, wrong env placement

* Check

* All done and ready for merging

And kind thanks to @rfomin for advice!

Co-Authored-By: Roman Fomin <rfomin@gmail.com>

* Bump CMake version to 3.15

---------

Co-authored-by: Roman Fomin <rfomin@gmail.com>
  • Loading branch information
JNechaevsky and rfomin authored Jan 5, 2025
1 parent b5fc19a commit b79a2a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ on:
jobs:
build-windows:
runs-on: windows-latest
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Get latest VCPKG commit
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.15)
cmake_policy(SET CMP0069 NEW)
cmake_policy(SET CMP0091 NEW)
project("Inter" VERSION 8.1.0 LANGUAGES C)
Expand Down

0 comments on commit b79a2a6

Please sign in to comment.