Skip to content

Commit 874b185

Browse files
committed
Use non-login shell on Windows and login shell on Linux/macOS
1 parent 83ed842 commit 874b185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ jobs:
104104
# Build GMT from source on Linux/macOS, script is adapted from
105105
# https://github.com/GenericMappingTools/gmt/blob/6.5.0/ci/build-gmt.sh
106106
- name: Build GMT from source
107-
shell: bash
107+
# Use non-login shell on Windows and login shell on Linux/macOS
108+
shell: ${{ runner.os == 'Windows' && 'bash' || 'bash -l {0}' }}
108109
run: |
109110
cd gmt/
110111
mkdir build

0 commit comments

Comments
 (0)