Skip to content

Commit 71bfce1

Browse files
committed
a
1 parent 0a63bbd commit 71bfce1

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Various non-standard tests, requiring e.g. longer run
22
name: Nightly
33

4-
# This job is run at 04:00 UTC every day or on demand.
54
on:
6-
workflow_dispatch:
7-
schedule:
8-
- cron: '0 4 * * *'
5+
push:
6+
branches-ignore:
7+
- 'dependabot/**'
8+
pull_request:
99

1010
permissions:
1111
contents: read

test/test_installation.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ def install_umf(self) -> None:
183183

184184
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install"
185185

186+
cmake_cache_file = self.build_dir / "CMakeCache.txt"
187+
if cmake_cache_file.exists():
188+
with cmake_cache_file.open() as f:
189+
for line in f:
190+
if "CMAKE_GENERATOR:INTERNA" in line:
191+
print(line)
192+
if "CMAKE_GENERATOR:INTERNAL=Ninja" in line:
193+
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --install"
194+
break
195+
186196
try:
187197
print(f"Running command: {install_cmd}", flush=True)
188198
subprocess.run(install_cmd.split()).check_returncode() # nosec B603

0 commit comments

Comments
 (0)