Skip to content

Commit

Permalink
targets removed: i686, arm. target added: armv7hf
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Apr 7, 2022
1 parent 6d06965 commit 34526fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ rustflags = ["-Clink-arg=-s"]
linker = "arm-linux-gnueabihf-ld"
rustflags = ["-Clink-arg=-s"]

[target.armv7-unknown-linux-musleabihf]
rustflags = ["-Clink-arg=-s"]

[target.aarch64-unknown-linux-musl]
rustflags = ["-Clink-arg=-s"]
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.3.1
VERSION=0.3.6

all: test

Expand Down Expand Up @@ -42,18 +42,15 @@ pkg:
rm -rf _build
mkdir -p _build
cross build --target x86_64-unknown-linux-musl --release --features server,cli
cross build --target i686-unknown-linux-musl --release --features server,cli
cross build --target arm-unknown-linux-musleabihf --release --features server,cli
cross build --target armv7-unknown-linux-musleabihf --release --features server,cli
cross build --target aarch64-unknown-linux-musl --release --features server,cli
cd target/x86_64-unknown-linux-musl/release && tar czvf ../../../_build/yedb-${VERSION}-x86_64-musl.tar.gz yedb-server yedb-cli
cd target/i686-unknown-linux-musl/release && tar czvf ../../../_build/yedb-${VERSION}-i686-musl.tar.gz yedb-server yedb-cli
cd target/arm-unknown-linux-musleabihf/release && tar czvf ../../../_build/yedb-${VERSION}-arm-musleabihf.tar.gz yedb-server yedb-cli
cd target/armv7-unknown-linux-musleabihf/release && tar czvf ../../../_build/yedb-${VERSION}-armv7-musleabihf.tar.gz yedb-server yedb-cli
cd target/aarch64-unknown-linux-musl/release && \
aarch64-linux-gnu-strip yedb-server && \
aarch64-linux-gnu-strip yedb-cli && \
tar czvf ../../../_build/yedb-${VERSION}-aarch64-musl.tar.gz yedb-server yedb-cli
cd _build && echo "" | gh release create v$(VERSION) -t "v$(VERSION)" \
yedb-${VERSION}-arm-musleabihf.tar.gz \
yedb-${VERSION}-i686-musl.tar.gz \
yedb-${VERSION}-armv7-musleabihf.tar.gz \
yedb-${VERSION}-x86_64-musl.tar.gz \
yedb-${VERSION}-aarch64-musl.tar.gz

0 comments on commit 34526fb

Please sign in to comment.