File tree 1 file changed +14
-7
lines changed 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ jobs:
103
103
nethook2 :
104
104
name : NetHook2 - ${{ matrix.platform }} - ${{ matrix.configuration }}
105
105
106
+ permissions :
107
+ contents : write
108
+
106
109
strategy :
107
110
matrix :
108
111
configuration : [ Debug, Release ]
@@ -111,21 +114,25 @@ jobs:
111
114
112
115
runs-on : windows-2022
113
116
117
+ # https://learn.microsoft.com/en-us/vcpkg/consume/binary-caching-github-actions-cache
118
+ env :
119
+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
120
+
114
121
steps :
115
122
- uses : actions/checkout@v4
116
123
with :
117
124
submodules : recursive
118
125
126
+ - name : Add cache environment variables
127
+ uses : actions/github-script@v6
128
+ with :
129
+ script : |
130
+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
131
+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
132
+
119
133
- name : Add MSBuild to PATH
120
134
uses : microsoft/setup-msbuild@v2
121
135
122
- - name : Cache vcpkg
123
- id : cache-dependencies
124
- uses : actions/cache@v4
125
- with :
126
- path : Resources/NetHook2/NetHook2/vcpkg_installed
127
- key : vcpkg-${{ matrix.platform }}-${{ matrix.configuration }}-${{ hashFiles('Resources/NetHook2/NetHook2/vcpkg.json') }}
128
-
129
136
- name : Configure Dependencies
130
137
run : pwsh -File Resources/NetHook2/SetupDependencies.ps1
131
138
You can’t perform that action at this time.
0 commit comments