Skip to content

Commit

Permalink
Merge pull request #179 from Tim-Zhang/lock-rust-version
Browse files Browse the repository at this point in the history
CI: lock Rust version to 1.66
  • Loading branch information
lifupan authored Mar 24, 2023
2 parents b2004f7 + 34003e3 commit 78de1c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 68 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
RUST_VERSION = 1.66

all: debug test

#
Expand Down Expand Up @@ -30,6 +32,6 @@ check:

.PHONY: deps
deps:
rustup update stable
rustup default stable
rustup install $(RUST_VERSION)
rustup default $(RUST_VERSION)
rustup component add rustfmt clippy
32 changes: 1 addition & 31 deletions compiler/Makefile
Original file line number Diff line number Diff line change
@@ -1,31 +1 @@
all: debug test

#
# Build
#

.PHONY: debug
debug:
cargo build --verbose --all-targets

.PHONY: release
release:
cargo build --release

.PHONY: build
build: debug

.PHONY: test
test:
cargo test --all-features --verbose

.PHONY: check
check:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings

.PHONY: deps
deps:
rustup update stable
rustup default stable
rustup component add rustfmt clippy
include ../Makefile
36 changes: 1 addition & 35 deletions ttrpc-codegen/Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
all: debug test

#
# Build
#

.PHONY: debug
debug:
cargo build --verbose --all-targets

.PHONY: release
release:
cargo build --release

.PHONY: build
build: debug

#
# Tests and linters
#

.PHONY: test
test:
cargo test --verbose

.PHONY: check
check:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings

.PHONY: deps
deps:
rustup update stable
rustup default stable
rustup component add rustfmt clippy
include ../Makefile

0 comments on commit 78de1c5

Please sign in to comment.