Skip to content
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

Add proxy service #9

Merged
merged 8 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":semanticCommitTypeAll(chore)"
],
"lockFileMaintenance": {
"enabled": true,
"extends": [
"schedule:weekly"
]
},
"nix": {
"enabled": true
}
}
22 changes: 22 additions & 0 deletions api/v0/build/build.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

package vorpal.build.v0;

service BuildService {
rpc Package (PackageRequest) returns (PackageResponse);
}

message PackageResponse {
string source_id = 1;
string source_hash = 2;
}

message PackageRequest {
repeated PackageResponse build_deps = 1;
repeated PackageResponse install_deps = 2;
repeated string ignore_paths = 3;
string build_phase = 4;
string install_phase = 5;
string name = 6;
string source = 7;
}
16 changes: 5 additions & 11 deletions api/v0/package/package.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ service PackageService {
rpc Build (BuildRequest) returns (BuildResponse);
}

message Package {
repeated string ignore_paths = 1;
string build_phase = 2;
string install_phase = 3;
string name = 4;
string source = 5;
}

enum Status {
CREATED = 0;
COMPLETED = 1;
Expand All @@ -33,9 +25,11 @@ message PrepareResponse {
}

message BuildRequest {
string build_phase = 1;
string install_phase = 2;
int32 source_id = 3;
repeated string build_deps = 1;
repeated string install_deps = 2;
string build_phase = 3;
string install_phase = 4;
int32 source_id = 5;
}

message BuildResponse {
Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("api/v0/package/package.proto")?;
tonic_build::configure()
.compile(&["build/build.proto", "package/package.proto"], &["api/v0"])?;
Ok(())
}
1 change: 1 addition & 0 deletions example/rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading