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
if [[ -z "${ACT}" ]]; then auth_header="$(git config --local --get http.https://github.com/.extraheader)"; fi
23
+
git submodule sync --recursive
24
+
git submodule update --init --force --recursive
25
+
26
+
# Restore both vcpkg and its artifacts from the GitHub cache service.
27
+
- name: Restore vcpkg and its artifacts.
28
+
uses: actions/cache@v4
29
+
with:
30
+
# The first path is where vcpkg generates artifacts while consuming the vcpkg.json manifest file.
31
+
# The second path is the location of vcpkg (it contains the vcpkg executable and data files).
32
+
# The other paths starting with '!' are exclusions: they contain temporary files generated during the build of the installed packages.
33
+
path: |
34
+
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed/
35
+
${{ env.VCPKG_ROOT }}
36
+
!${{ env.VCPKG_ROOT }}/buildtrees
37
+
!${{ env.VCPKG_ROOT }}/packages
38
+
!${{ env.VCPKG_ROOT }}/downloads
39
+
# 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.
40
+
# 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.
41
+
# 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).
echo "Host localhost\n Port 2222\n\n" >> ~/.ssh/config
27
+
28
+
sudo /usr/sbin/sshd -p 2222
29
+
30
+
ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" -N ""
31
+
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
32
+
cat ~/.ssh/id_rsa.pub >> ~/.ssh/known_hosts
33
+
ssh -vvvvvvv -o "StrictHostKeyChecking no" -o 'PreferredAuthentications=publickey' localhost "echo foobar" # Fails if we can't ssh into localhost without a password
34
+
if [[ -z "${ACT}" ]]; then auth_header="$(git config --local --get http.https://github.com/.extraheader)"; fi
# Restore both vcpkg and its artifacts from the GitHub cache service.
109
-
- name: Restore vcpkg and its artifacts.
110
-
uses: actions/cache@v4
111
-
with:
112
-
# The first path is where vcpkg generates artifacts while consuming the vcpkg.json manifest file.
113
-
# The second path is the location of vcpkg (it contains the vcpkg executable and data files).
114
-
# The other paths starting with '!' are exclusions: they contain temporary files generated during the build of the installed packages.
115
-
path: |
116
-
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed/
117
-
${{ env.VCPKG_ROOT }}
118
-
!${{ env.VCPKG_ROOT }}/buildtrees
119
-
!${{ env.VCPKG_ROOT }}/packages
120
-
!${{ env.VCPKG_ROOT }}/downloads
121
-
# 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.
122
-
# 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.
123
-
# 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).
0 commit comments