From a3612d21d164de14f4aeb4442ef747eb8fdfa8eb Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Fri, 28 Jun 2024 14:30:15 +0200 Subject: Remove GitHub build Project is migrating to Codeberg, so we remove GitHub related things. This includes bot the GitHub actions, but also the `devcontainers`. More information was added in the README, and a Makefile is provided for building the project. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8c9a8f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.POSIX: +.SUFFIXES: + +CARGO = cargo +WASMOPT = wasm-opt + +.PHONY: all +all: check build + +.PHONY: check +check: + $(CARGO) fmt -- --check + $(CARGO) clippy --locked --all-targets -- -D warnings + $(CARGO) test + +.PHONY: build +build: + $(CARGO) build --release + $(CARGO) build --release --target wasm32-wasi + $(WASMOPT) target/wasm32-wasi/release/hdwallet.wasm -O4 -o target/hdwallet.wasm --strip-debug --strip-producers -- cgit v1.2.3