Skip to content

Commit 78de1c5

Browse files
authored
Merge pull request #179 from Tim-Zhang/lock-rust-version
CI: lock Rust version to 1.66
2 parents b2004f7 + 34003e3 commit 78de1c5

File tree

3 files changed

+6
-68
lines changed

3 files changed

+6
-68
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
RUST_VERSION = 1.66
2+
13
all: debug test
24

35
#
@@ -30,6 +32,6 @@ check:
3032

3133
.PHONY: deps
3234
deps:
33-
rustup update stable
34-
rustup default stable
35+
rustup install $(RUST_VERSION)
36+
rustup default $(RUST_VERSION)
3537
rustup component add rustfmt clippy

compiler/Makefile

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1 @@
1-
all: debug test
2-
3-
#
4-
# Build
5-
#
6-
7-
.PHONY: debug
8-
debug:
9-
cargo build --verbose --all-targets
10-
11-
.PHONY: release
12-
release:
13-
cargo build --release
14-
15-
.PHONY: build
16-
build: debug
17-
18-
.PHONY: test
19-
test:
20-
cargo test --all-features --verbose
21-
22-
.PHONY: check
23-
check:
24-
cargo fmt --all -- --check
25-
cargo clippy --all-targets --all-features -- -D warnings
26-
27-
.PHONY: deps
28-
deps:
29-
rustup update stable
30-
rustup default stable
31-
rustup component add rustfmt clippy
1+
include ../Makefile

ttrpc-codegen/Makefile

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
all: debug test
2-
3-
#
4-
# Build
5-
#
6-
7-
.PHONY: debug
8-
debug:
9-
cargo build --verbose --all-targets
10-
11-
.PHONY: release
12-
release:
13-
cargo build --release
14-
15-
.PHONY: build
16-
build: debug
17-
18-
#
19-
# Tests and linters
20-
#
21-
22-
.PHONY: test
23-
test:
24-
cargo test --verbose
25-
26-
.PHONY: check
27-
check:
28-
cargo fmt --all -- --check
29-
cargo clippy --all-targets --all-features -- -D warnings
30-
31-
.PHONY: deps
32-
deps:
33-
rustup update stable
34-
rustup default stable
35-
rustup component add rustfmt clippy
1+
include ../Makefile

0 commit comments

Comments
 (0)