-
Notifications
You must be signed in to change notification settings - Fork 55
gRPC server for Bicep #1330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gRPC server for Bicep #1330
Changes from all commits
407f6eb
031abbc
89fc95e
ab57a1a
1a01f8e
ede49a2
9e820f9
dafef2f
e34c2f0
c266239
9a96069
bf5139b
734ab10
237d71f
1e6c039
fe5e6de
b616959
0ac170e
c64be2e
725e8bb
370e8e7
284e49a
62cb5b3
de667ca
3d4b276
bc82718
67ec049
b8d915d
c03ff47
612615f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| target | ||
| build/ | ||
| target/ | ||
| bin/ | ||
| .DS_Store | ||
| *.msix | ||
|
|
||
| # Node.js generated files for tree-sitter | ||
| build/ | ||
| node_modules/ | ||
| # Generated files for tree-sitter | ||
| grammars/**/bindings/ | ||
| grammars/**/src/ | ||
| grammars/**/parser.* | ||
| tree-sitter-ssh-server-config/ | ||
| tree-sitter-dscexpression/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -321,7 +321,7 @@ extends: | |
| ob_restore_phase: true | ||
| - pwsh: | | ||
| apt update | ||
| apt -y install musl-tools rpm dpkg build-essential | ||
| apt -y install musl-tools rpm dpkg build-essential protobuf-compiler | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I only have a loose understanding of the state of the OneBranch pipeline for this project. The build module will run the same apt install (and that is the correct package name) but I'm inferring this is the "restore" phase where it needs to be run? Or is this just for bootstrapping Rust? This package does eventually have to be installed.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This installs all the tools not already available in the OneBranch container so doing it here seems appropriate |
||
| $header = "Bearer $(AzToken)" | ||
| $env:CARGO_REGISTRIES_POWERSHELL_TOKEN = $header | ||
| $env:CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = 'cargo:token' | ||
|
|
@@ -381,6 +381,7 @@ extends: | |
| apt -y install rpm | ||
| apt -y install dpkg | ||
| apt -y install build-essential | ||
| apt install -y protobuf-compiler | ||
| msrustup default stable-aarch64-unknown-linux-musl | ||
| if ((openssl version -d) -match 'OPENSSLDIR: "(?<dir>.*?)"') { | ||
| $env:OPENSSL_LIB_DIR = $matches['dir'] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was necessary for Protobuf because
protoc.exeis made available by WinGet in this local app data path, which on GitHub images is not already in the PATH, and that is unlike the rest of our dependencies (Node.js is already installed system-wide and so in the PATH, tree-sitter isn't installed by installs via Cargo, this was our first installation on GitHub Actions using WinGet that doesn't run a system installer).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should have this environment change in the build.helpers.psm1 for protobuf tool install instead of a one-off here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is specific to GitHub Actions. When you install Protobuf via WinGet on Windows normally,
protocis found in thePATH. It appears that GitHub Actions Windows images don't correctly include the WinGet path.