-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): feature combos build in nightly (#3296)
Signed-off-by: Dori Medini <[email protected]>
- Loading branch information
1 parent
458a935
commit 7417fd9
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/env python3 | ||
|
||
import subprocess | ||
from tests_utils import get_workspace_packages | ||
|
||
|
||
def build_without_features(package: str): | ||
cmd = f"cargo build --package {package}" | ||
print(f"Running '{cmd}'", flush=True) | ||
subprocess.run(cmd, check=True) | ||
|
||
|
||
def build_with_all_features(package: str): | ||
cmd = f"cargo build --all-features --package {package}" | ||
print(f"Running '{cmd}'", flush=True) | ||
subprocess.run(cmd, check=True) | ||
|
||
|
||
def main(): | ||
packages = get_workspace_packages() | ||
print(f"Building {len(packages)} packages without features.", flush=True) | ||
for package in packages: | ||
build_without_features(package) | ||
print(f"Building {len(packages)} packages with all features.", flush=True) | ||
for package in packages: | ||
build_with_all_features(package) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters