Skip to content

Commit 107d012

Browse files
committed
Added install protoc to git workflows
1 parent be15be5 commit 107d012

File tree

5 files changed

+26
-33
lines changed

5 files changed

+26
-33
lines changed

.github/workflows/ci.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
- name: Checkout sources
1212
uses: actions/checkout@v2
1313

14+
- name: Install Protoc
15+
uses: arduino/setup-protoc@v1
16+
1417
- name: Install stable toolchain
1518
uses: actions-rs/toolchain@v1
1619
with:
@@ -63,6 +66,9 @@ jobs:
6366
if: runner.os == 'Windows'
6467
run: git config --global core.autocrlf false
6568

69+
- name: Install Protoc
70+
uses: arduino/setup-protoc@v1
71+
6672
- name: Install stable toolchain
6773
uses: actions-rs/toolchain@v1
6874
with:
@@ -150,6 +156,9 @@ jobs:
150156
if: runner.os == 'Windows'
151157
run: git config --global core.autocrlf false
152158

159+
- name: Install Protoc
160+
uses: arduino/setup-protoc@v1
161+
153162
- name: Install stable toolchain
154163
uses: actions-rs/toolchain@v1
155164
with:
@@ -213,13 +222,17 @@ jobs:
213222
with:
214223
command: test
215224
args: --release -p kaspaopencl
225+
216226
lints:
217227
name: Lints
218228
runs-on: ubuntu-latest
219229
steps:
220230
- name: Checkout sources
221231
uses: actions/checkout@v2
222232

233+
- name: Install Protoc
234+
uses: arduino/setup-protoc@v1
235+
223236
- name: Install stable toolchain
224237
uses: actions-rs/toolchain@v1
225238
with:

.github/workflows/deploy.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Check out code into the Go module directory
2828
uses: actions/checkout@v2
2929

30+
- name: Install Protoc
31+
uses: arduino/setup-protoc@v1
32+
3033
- name: Setup Rust
3134
uses: actions-rs/toolchain@v1
3235
with:
@@ -120,6 +123,9 @@ jobs:
120123
- name: Check out code into the module directory
121124
uses: actions/checkout@v2
122125

126+
- name: Install Protoc
127+
uses: arduino/setup-protoc@v1
128+
123129
- name: Setup Rust
124130
uses: actions-rs/toolchain@v1
125131
with:

Cargo.lock

+6-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ include = [
2424
[dependencies]
2525
tonic = "0.8"
2626
tokio = { version = "1.17", features = ["macros", "rt-multi-thread"] }
27-
prost = "0.10"
27+
prost = "0.11"
2828
futures-util = "0.3"
2929
tokio-stream = {version = "0.1", features = ["net"]}
3030
once_cell = "1"
@@ -68,7 +68,6 @@ codegen-units = 1
6868

6969
[build-dependencies]
7070
tonic-build = { version = "0.8", default-features = false, features = ["prost", "transport"] }
71-
#protobuf-src = "1.0"
7271
cc = "1"
7372
time = { version = "0.3", features = ["formatting"] }
7473

build.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ use std::env;
22
use time::{format_description, OffsetDateTime};
33

44
fn main() -> Result<(), Box<dyn std::error::Error>> {
5-
//std::env::set_var("PROTOC", protobuf_src::protoc());
65

76
let format = format_description::parse("[year repr:last_two][month][day][hour][minute]")?;
87
let dt = OffsetDateTime::now_utc().format(&format)?;
9-
//env::set_var("PACKAGE_COMPILE_TIME", dt);
108
println!("cargo:rustc-env=PACKAGE_COMPILE_TIME={}", dt);
119

1210
println!("cargo:rerun-if-changed=proto");

0 commit comments

Comments
 (0)