innernet-playbook/build-binaries.sh

19 lines
474 B
Bash
Raw Normal View History

2021-11-15 18:43:31 +01:00
#!/usr/bin/env bash
# Go to innernet-src submodule
cd innernet-src || exit
# Checkout correct version
git checkout "${INNERNET_VERSION}"
# Build binaries
cargo build --release --bin innernet
cargo build --release --bin innernet-server
# Copy binaries to Ansible roles
mkdir -p ./roles/server/files && \
cp target/release/innernet ../roles/server/files/innernet-server
mkdir -p ./roles/client/files && \
cp target/release/innernet ../roles/client/files/innernet