aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2024-06-28 14:30:15 +0200
committerNicholas Rodrigues Lordello <[email protected]>2024-06-28 14:34:18 +0200
commita3612d21d164de14f4aeb4442ef747eb8fdfa8eb (patch)
tree28c32dfb4963fd34ad1dade272ce69049de46d69 /Makefile
parentbdb47ee691f0302c05daaf0278b606fbaf319f61 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
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