Skip to content

Commit 97972a0

Browse files
authored
Merge pull request #392 from arkedge/feature/c2a-boom-precompiled-binaries
C2A Boom: Install pre-compiled binaries
2 parents b9d68d5 + ec9d325 commit 97972a0

File tree

6 files changed

+1108
-854
lines changed

6 files changed

+1108
-854
lines changed

examples/mobc/boom-tools/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/bin/*
22
/bin/.keep
3+
/binstall/*
34
/.crates.toml
45
/.crates2.json

examples/mobc/boom-tools/install.sh

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
#!/bin/bash -Cue
22

3-
export CARGO_NET_GIT_FETCH_WITH_CLI=true
3+
export BINSTALL_VERSION="v1.10.14"
4+
export JRSONNET_VERSION="v0.5.0-pre96-test"
45

5-
cargo install --debug --root . tmtc-c2a --git https://github.com/arkedge/gaia.git --tag v0.6.1
6+
curl -L --proto '=https' --tlsv1.2 -sSf "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/${BINSTALL_VERSION}/install-from-binstall-release.sh" | env BINSTALL_VERSION=${BINSTALL_VERSION} CARGO_HOME=$(pwd) bash
67

7-
cargo install --debug --root . tlmcmddb-cli --version 0.2.0
8-
cargo install --debug --root . kble --version 0.2.0
9-
cargo install --debug --root . kble-c2a --version 0.2.0
10-
cargo install --debug --root . kble-eb90 --version 0.2.0
11-
cargo install --debug --root . jrsonnet --version 0.5.0-pre9 --locked
8+
./bin/cargo-binstall --root . tmtc-c2a --version 1.0.0 --no-confirm
9+
10+
./bin/cargo-binstall --root . tlmcmddb-cli --version 2.6.1 --no-confirm
11+
./bin/cargo-binstall --root . kble --version 0.3.0 --no-confirm
12+
./bin/cargo-binstall --root . kble-c2a --version 0.3.0 --no-confirm
13+
./bin/cargo-binstall --root . kble-eb90 --version 0.3.0 --no-confirm
14+
15+
## install jrsonnet
16+
arch=$(uname -m)
17+
if [ "$arch" = "x86_64" ]; then
18+
arch="amd64"
19+
fi
20+
os=$(uname -s | tr -s '[:upper:]' '[:lower:]')
21+
curl -L "https://github.com/CertainLach/jrsonnet/releases/download/${JRSONNET_VERSION}/jrsonnet-linux-${arch}" -o ./bin/jrsonnet
22+
chmod +x ./bin/jrsonnet

0 commit comments

Comments
 (0)