Skip to content

Commit

Permalink
Build with nx
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkaseman committed Dec 17, 2024
1 parent 4d09da0 commit 7bfce4f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/bin/goreleaser_utils
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,20 @@ get_remote_plugin_paths() {
done
}

build_standard_capabilities() {
./nx run-many -t build
# binaries get put into /bin under /bin/amd64 and /bin/arm64
cp "./bin/$(go env GOARCH)"/* "$lib_path/plugins"
}

install_remote_plugins() {
ldflags=(-ldflags "$(./tools/bin/ldflags)")

for plugin in $(get_remote_plugin_paths); do
go install "${ldflags[@]}" "$plugin"
done

# Build standard capabilities
cd ./capabilities/cron && go install "${ldflags[@]}" .
cd ../readcontract && go install "${ldflags[@]}" .
cd ../..
build_standard_capabilities
}

# binary build post hook
Expand Down

0 comments on commit 7bfce4f

Please sign in to comment.