Skip to content

Commit fa12fe4

Browse files
[pre-commit.ci] pre-commit autoupdate (#4329)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/zizmorcore/zizmor-pre-commit: v1.14.2 → v1.19.0](zizmorcore/zizmor-pre-commit@v1.14.2...v1.19.0) * Set dependabot cooldown default-days to 7 Xref https://docs.zizmor.sh/audits/#dependabot-cooldown * Try using pwsh for GMT build on Windows * Translate to bash * Try using cmd.exe /c * More cmd to bash translations --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent d0d91ab commit fa12fe4

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
version: 2
44
updates:
5-
65
- package-ecosystem: "github-actions"
76
directory: "/"
87
schedule:
@@ -15,3 +14,5 @@ updates:
1514
labels:
1615
- "maintenance"
1716
- "skip-changelog"
17+
cooldown:
18+
default-days: 7

.github/workflows/ci_tests_dev.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,17 @@ jobs:
122122
if: runner.os != 'Windows'
123123

124124
- name: Build GMT on Windows
125-
shell: cmd
125+
shell: bash
126126
run: |
127127
cd gmt/
128128
mkdir build
129129
cd build
130-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
131-
cmake -G Ninja .. ^
132-
-DCMAKE_INSTALL_PREFIX=%GMT_INSTALL_DIR% ^
133-
-DCMAKE_BUILD_TYPE=Release ^
134-
-DCMAKE_PREFIX_PATH=%MAMBA_ROOT_PREFIX%\envs\pygmt\Library ^
135-
-DGMT_ENABLE_OPENMP=TRUE ^
130+
cmd.exe /c "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
131+
cmake -G Ninja .. \
132+
-DCMAKE_INSTALL_PREFIX="$GMT_INSTALL_DIR" \
133+
-DCMAKE_BUILD_TYPE=Release \
134+
-DCMAKE_PREFIX_PATH="$MAMBA_ROOT_PREFIX/envs/pygmt/Library" \
135+
-DGMT_ENABLE_OPENMP=TRUE \
136136
-DGMT_USE_THREADS=TRUE
137137
cmake --build .
138138
cmake --build . --target install

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: chmod
1717
args: ["644"]
1818
- repo: https://github.com/zizmorcore/zizmor-pre-commit
19-
rev: v1.14.2
19+
rev: v1.19.0
2020
hooks:
2121
- id: zizmor
2222

0 commit comments

Comments
 (0)