Skip to content

Commit d259b65

Browse files
authored
Log vcpkg commit info and updated packages, formatting changes (#18)
* .github/workflows/mswin.yml - log vcpkg commit info, formatting * create_mswin_pkg.rb - list updated packages
1 parent 04555c7 commit d259b65

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/mswin.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ jobs:
3131
- name: update vcpkg installation
3232
run: |
3333
$env:VCPKG_ROOT = $env:VCPKG_INSTALLATION_ROOT
34+
echo "::group::————————————— git pull —————————————"
3435
cd $env:VCPKG_INSTALLATION_ROOT
35-
git pull --no-tags -q
36+
# --depth=1 may cause 'fatal: refusing to merge unrelated histories'
37+
git pull --no-tags -q --depth=1000
38+
echo ::endgroup::
39+
echo "`n———————————— commit info ————————————"
40+
git log -1 --pretty=format:'%H %cs%n%n'
3641
./bootstrap-vcpkg.bat
37-
echo "`n———————————— ./vcpkg list ————————————"
38-
./vcpkg list
3942
timeout-minutes: 15
4043

4144
- name: Update mswin tools 7z and Upload

create_mswin_pkg.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def generate_package_files
8080
exec_check "Removing outdated packages",
8181
"./vcpkg remove --outdated"
8282

83+
exec_check "Package List",
84+
"./vcpkg list"
85+
8386
exec_check "Exporting package files from vcpkg",
8487
"./vcpkg export --triplet=x64-windows #{PACKAGES} --raw --output=#{PKG_NAME} --output-dir=#{EXPORT_DIR}"
8588
end

0 commit comments

Comments
 (0)