Skip to content

Commit

Permalink
ci: pin cross and rust versions
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Jan 18, 2024
1 parent 7255abc commit 965f490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ fix:
build: $(foreach shim,$(SHIMS),build-$(shim)-cross-$(TARGET))
echo "Build complete"

# pin cross to a specific commit to avoid breaking changes
.PHONY: install-cross
install-cross:
@if [ -z $$(which cross) ]; then cargo install cross --git https://github.com/cross-rs/cross; fi
@if [ -z $$(which cross) ]; then cargo install cross --git https://github.com/cross-rs/cross --rev 5896ed1359642510855ca9ee50ce7fdf75c50e3c#5896ed13; fi

# build-cross can be be used to build any cross supported target (make build-cross-x86_64-unknown-linux-musl)
.PHONY: $(BUILD_TARGETS)
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "stable"
channel = "1.74.1"
components = ["clippy", "rustfmt"]
targets = ["wasm32-wasi", "wasm32-unknown-unknown"]
profile = "default"

0 comments on commit 965f490

Please sign in to comment.