File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,14 +114,18 @@ jobs:
114114 name : windows
115115 steps :
116116 - name : git clone
117- uses : actions/checkout@v4
117+ uses : actions/checkout@v5
118118 with :
119119 submodules : true # non-recursive, no remote
120120 - name : set VCPKG_ROOT
121121 uses : myci-actions/export-env-var-powershell@main
122122 # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
123123 # but on practice it is not set, so specify vcpkg root path explicitly
124124 with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
125+ - name : make local symbolic link to VCPKG installation directory
126+ # this is needed at least for actions/upload-artifact to be able to find vcpkg install logs
127+ shell : powershell
128+ run : New-Item -ItemType SymbolicLink -Path vcpkg-installation -Target $env:VCPKG_ROOT
125129 - name : generate cmake build files
126130 run : |
127131 cmake build/cmake --preset native -A ${{ matrix.arch }}
@@ -133,6 +137,13 @@ jobs:
133137 run : |
134138 cd build/cmake
135139 cmake --build --preset ${{ matrix.config }} --target test
140+ - name : upload vcpkg logs to artifacts
141+ if : always() # even if previous steps fail, this one needs to be run
142+ uses : actions/upload-artifact@v4
143+ with :
144+ name : windows_${{ matrix.arch }}_${{ matrix.config }}_logs
145+ path : |
146+ vcpkg-installation/buildtrees/
136147# #### ios #####
137148 ios :
138149 runs-on : macos-latest
You can’t perform that action at this time.
0 commit comments