Skip to content

Commit f93eed4

Browse files
committed
gh: configure safe.directory git opt on Cygwin & win native
1 parent 67c7b09 commit f93eed4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/windows_tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
run: |
3535
curl -LfsS -o %TCL_INSTALLER%.exe %TCL_DL_URL%/%TCL_INSTALLER%.exe
3636
%TCL_INSTALLER% /verysilent
37+
- name: Configure Git safe.directory
38+
run: |
39+
& $env:CYGWIN_BASH -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
3740
- name: Build Modules dist
3841
run: |
3942
& $env:CYGWIN_BASH -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure --disable-libtclenvmodules && make dist-win'
@@ -73,6 +76,9 @@ jobs:
7376
# precise all sphinxcontrib packages required as dependency spec
7477
# of python39-sphinx package is regularly broken
7578
choco install make sed git autoconf automake libtool tcl dejagnu python39 python39-sphinx ruby zsh tcsh mksh fish cmake R tcl-devel gcc-core wget python39-sphinxcontrib-applehelp python39-sphinxcontrib-devhelp python39-sphinxcontrib-htmlhelp python39-sphinxcontrib-jsmath python39-sphinxcontrib-qthelp python39-sphinxcontrib-serializinghtml python39-sphinxcontrib-websupport python39-alabaster python39-sqlalchemy --source cygwin
79+
- name: Configure Git safe.directory
80+
run: |
81+
& $env:CYGWIN_BASH -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
7682
- name: Build Modules
7783
run: |
7884
& $env:CYGWIN_BASH -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure && make'

0 commit comments

Comments
 (0)