Skip to content

Commit

Permalink
ci: pin cross and rust versions (deislabs#200)
Browse files Browse the repository at this point in the history
* ci: pin cross and rust versions
* fixed the commit rev
* pin rust version to 1.75

Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
  • Loading branch information
Mossaka committed Jan 23, 2024
1 parent cb7843b commit cef089e
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; 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.75.0"
components = ["clippy", "rustfmt"]
targets = ["wasm32-wasi", "wasm32-unknown-unknown"]
profile = "default"

0 comments on commit cef089e

Please sign in to comment.