Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
updated makefiles for release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksmtownsend committed Jan 13, 2021
1 parent 5f6501e commit feb454b
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 93 deletions.
23 changes: 14 additions & 9 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= $(NAME).par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
23 changes: 14 additions & 9 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= fs.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
23 changes: 14 additions & 9 deletions http-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= httpclient.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
23 changes: 14 additions & 9 deletions http-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= httpserver.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
23 changes: 14 additions & 9 deletions logging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= logging.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
6 changes: 3 additions & 3 deletions nats/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ endef

CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
VERSION := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].version')
VERSION := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].version')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR ?= wasmcloud
REVISION ?= 0
DESTINATION ?= nats.par.gz
REVISION ?= 0
DESTINATION ?= nats.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand Down
23 changes: 14 additions & 9 deletions redis-streams/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ endef
CAPABILITY_ID := $(call readvar,CAPABILITY_ID)
NAME := $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
LIBNAME := $(shell echo $(NAME) | tr '-' '_')
VENDOR := waSCC
VENDOR := wasmCloud
REVISION ?= 0
DESTINATION ?= redisstreams.par.gz

TARGETS := armv7-unknown-linux-gnueabihf \
aarch64-unknown-linux-gnu \
Expand All @@ -30,23 +32,26 @@ par: $(TARGETS)
--capid $(CAPABILITY_ID) \
--name $(NAME) \
--vendor $(VENDOR) \
--version $(VERSION) \
--revision $(REVISION) \
--destination $(DESTINATION) \
--compress
wash par insert \
--arch aarch64-linux \
--binary target/aarch64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-macos \
--binary target/x86_64-apple-darwin/release/lib$(LIBNAME).dylib \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-windows \
--binary target/x86_64-pc-windows-gnu/release/$(LIBNAME).dll \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch x86_64-linux \
--binary target/x86_64-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)

$(MIPS_TARGETS):
cross build --target $@ --release
Expand All @@ -55,16 +60,16 @@ par-mips: $(MIPS_TARGETS) par
wash par insert \
--arch mips-linux \
--binary target/mips-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mipsel-linux \
--binary target/mipsel-unknown-linux-gnu/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64-linux \
--binary target/mips64-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
wash par insert \
--arch mips64el-linux \
--binary target/mips64el-unknown-linux-gnuabi64/release/lib$(LIBNAME).so \
lib$(LIBNAME).par.gz
$(DESTINATION)
Loading

0 comments on commit feb454b

Please sign in to comment.