You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "checking out branch ${{ env.BRANCH_NAME }} of submodule external/LibAPR"
94
+
cd external/LibAPR
95
+
git checkout ${{ env.BRANCH_NAME }}
96
+
64
97
# Setup the build machine with the most recent versions of CMake and Ninja. Both are cached if not already: on subsequent runs both will be quickly restored from GitHub cache service.
65
98
- uses: lukka/get-cmake@latest
66
99
# Restore both vcpkg and its artifacts from the GitHub cache service.
67
100
- name: Restore vcpkg and its artifacts.
68
-
uses: actions/cache@v2
101
+
uses: actions/cache@v3
69
102
with:
70
103
# The first path is where vcpkg generates artifacts while consuming the vcpkg.json manifest file.
71
104
# The second path is the location of vcpkg (it contains the vcpkg executable and data files).
@@ -94,18 +127,19 @@ jobs:
94
127
# On Windows runners, let's ensure to have the Developer Command Prompt environment setup correctly. As used here the Developer Command Prompt created is targeting x64 and using the default the Windows SDK.
95
128
- uses: ilammy/msvc-dev-cmd@v1
96
129
97
-
- uses: actions/setup-python@v2
130
+
- uses: actions/setup-python@v4
98
131
name: Install Python
99
132
with:
100
-
python-version: '3.7'
133
+
python-version: '3.9'
101
134
102
135
- name: Install cibuildwheel
103
136
run: |
104
-
python3 -m pip install cibuildwheel==1.10.0
137
+
python3 -m pip install cibuildwheel==2.5.0
105
138
106
139
- name: Install OpenMP dependencies with brew for OSX
echo "checking out branch ${{ env.BRANCH_NAME }} of submodule external/LibAPR"
54
+
cd external/LibAPR
55
+
git checkout ${{ env.BRANCH_NAME }}
56
+
57
+
# Setup the build machine with the most recent versions of CMake and Ninja. Both are cached if not already: on subsequent runs both will be quickly restored from GitHub cache service.
58
+
- uses: lukka/get-cmake@latest
59
+
# Restore both vcpkg and its artifacts from the GitHub cache service.
60
+
- name: Restore vcpkg and its artifacts.
61
+
uses: actions/cache@v3
62
+
with:
63
+
# The first path is where vcpkg generates artifacts while consuming the vcpkg.json manifest file.
64
+
# The second path is the location of vcpkg (it contains the vcpkg executable and data files).
65
+
# The other paths starting with '!' are exclusions: they contain termporary files generated during the build of the installed packages.
66
+
path: |
67
+
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed/
68
+
${{ env.VCPKG_ROOT }}
69
+
!${{ env.VCPKG_ROOT }}/buildtrees
70
+
!${{ env.VCPKG_ROOT }}/packages
71
+
!${{ env.VCPKG_ROOT }}/downloads
72
+
# The key is composed in a way that it gets properly invalidated: this must happen whenever vcpkg's Git commit id changes, or the list of packages changes. In this case a cache miss must happen and a new entry with a new key with be pushed to GitHub the cache service.
73
+
# The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm.
74
+
# Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already).
- name: Show content of workspace after cache has been restored
79
+
run: find $RUNNER_WORKSPACE
80
+
shell: bash
81
+
82
+
# On Windows runners, let's ensure to have the Developer Command Prompt environment setup correctly. As used here the Developer Command Prompt created is targeting x64 and using the default the Windows SDK.
0 commit comments