Skip to content

Commit e6aed7c

Browse files
authored
Merge pull request #3434 from jimklimov/issue-3420-snh
NUT4WIN: Allow 7-zip to store hard-links, allow `make` to create them
2 parents a024b93 + 4f4d970 commit e6aed7c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#
22
# Network UPS Tools: AppVeyor CI build recipe: NUT for Windows with MSYS2/MinGW x64
33
#
4+
# Copyright (C) 2022-2026 Jim Klimov <jimklimov+nut@gmail.com>
5+
#
6+
# Inspired by docs:
47
# https://www.msys2.org/docs/ci/
58
# https://www.appveyor.com/docs/appveyor-yml/
69
# https://www.appveyor.com/docs/build-configuration/
@@ -29,6 +32,7 @@ environment:
2932
CCACHE_DIR: /home/appveyor/.ccache
3033
DO_CLEAN_NUTCI_CACHE: no
3134
DO_USE_NUTCI_CACHE: yes
35+
MSYS: "winsymlinks:nativestrict"
3236

3337
# Customize GH notification message template
3438
# TODO: for repetitive commits in a PR consider a clean-up GHA like
@@ -172,7 +176,8 @@ after_test:
172176
C:\msys64\usr\bin\bash -lc 'date -u; set -e ; rm -rf ./.inst/NUT-for-Windows-x86_64-SNAPSHOT || true ; ln -fs "NUT-for-Windows-x86_64-SNAPSHOT-%APPVEYOR_BUILD_VERSION%" ./.inst/NUT-for-Windows-x86_64-SNAPSHOT ; ( cd .inst/NUT-for-Windows-x86_64-SNAPSHOT ; find . -ls ; )'
173177
C:\msys64\usr\bin\bash -lc 'date -u'
174178
cd .inst
175-
7z a ../NUT-for-Windows-x86_64-SNAPSHOT-%APPVEYOR_BUILD_VERSION%.7z NUT*
179+
REM 7z -snh: hoping for a version that can save hardlinks as such, and in 7z format to boot:
180+
7z a -snh ../NUT-for-Windows-x86_64-SNAPSHOT-%APPVEYOR_BUILD_VERSION%.7z NUT*
176181
177182
# Consider APPVEYOR_PULL_REQUEST_HEAD_COMMIT (PR) vs APPVEYOR_REPO_COMMIT (target branch, or ephemeral)
178183
- ps: |

0 commit comments

Comments
 (0)