-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for macOS package installation via brew
- Loading branch information
Showing
5 changed files
with
25 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
var: | ||
project_version: "0.6.0" | ||
project_version: "0.7.0" | ||
python_version: "3.12" | ||
|
||
jobs: | ||
|
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,20 @@ | ||
from bluish.action import action | ||
from bluish.context import StepContext | ||
from bluish.logging import error, info | ||
from bluish.process import ProcessResult, install_package | ||
|
||
|
||
@action("macos/install-packages", required_inputs=["packages"]) | ||
def system_install_packages(step: StepContext) -> ProcessResult: | ||
package_str = " ".join(step.inputs["packages"]) | ||
flavor = "macos" | ||
|
||
info(f"Installing packages {package_str}...") | ||
|
||
result = install_package( | ||
step.job.runs_on_host, step.inputs["packages"], flavor=flavor | ||
) | ||
if result.failed: | ||
error(f"Failed to install packages {package_str}\n{result.error}") | ||
|
||
return result |
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