-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
186 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target/ | ||
target | ||
target-docker | ||
**/*.rs.bk | ||
webui/.cache | ||
webui/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd "$(dirname $(readlink -f "$0"))/.." | ||
|
||
source ./ci/check_if_nightly.sh | ||
|
||
cd preload | ||
cargo build --release --target=x86_64-unknown-linux-gnu $FEATURES_NIGHTLY | ||
cd .. | ||
|
||
cd cli | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cd .. | ||
|
||
cd gather | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd "$(dirname $(readlink -f "$0"))/.." | ||
|
||
./ci/build.sh | ||
./ci/package.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set +e | ||
echo "$(rustc --version)" | grep -q "nightly" | ||
if [ "$?" = "0" ]; then | ||
FEATURES_NIGHTLY="--features nightly" | ||
else | ||
FEATURES_NIGHTLY="" | ||
fi | ||
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ubuntu:disco | ||
FROM ubuntu:focal | ||
MAINTAINER Jan Bujak ([email protected]) | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates file gcc g++ git locales make qemu-user | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends ca-certificates file gcc g++ git locales make qemu-user curl yarnpkg | ||
|
||
RUN locale-gen en_US.UTF-8 && \ | ||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | ||
|
@@ -40,5 +40,15 @@ RUN mkdir -p \ | |
|
||
COPY static/cargo.config /home/user/.cargo/config | ||
|
||
USER user | ||
ENV RUST_BACKTRACE=1 | ||
|
||
ARG USE_HOST_RUSTC=0 | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || curl https://static.rust-lang.org/rustup/archive/1.24.1/x86_64-unknown-linux-gnu/rustup-init > rustup-init | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || chmod +x rustup-init | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || ./rustup-init --profile minimal --default-toolchain nightly-2021-06-08 -y | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || run-if-enabled aarch64-unknown-linux-gnu "rustup target add aarch64-unknown-linux-gnu" | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || run-if-enabled armv7-unknown-linux-gnueabihf "rustup target add armv7-unknown-linux-gnueabihf" | ||
RUN [ $USE_HOST_RUSTC -eq 1 ] || run-if-enabled mips64-unknown-linux-gnuabi64 "rustup target add mips64-unknown-linux-gnuabi64" | ||
|
||
ARG CARGO_TARGET_DIR=/home/user/cwd/target-docker | ||
ENV CARGO_TARGET_DIR=$CARGO_TARGET_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd "$(dirname $(readlink -f "$0"))/.." | ||
|
||
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$(dirname $(readlink -f "$0"))/../target} | ||
|
||
echo "Packaging for deployment..." | ||
|
||
rm -Rf $CARGO_TARGET_DIR/travis-deployment $CARGO_TARGET_DIR/travis-deployment-tmp | ||
mkdir -p $CARGO_TARGET_DIR/travis-deployment $CARGO_TARGET_DIR/travis-deployment-tmp | ||
|
||
cp $CARGO_TARGET_DIR/x86_64-unknown-linux-gnu/release/libmemory_profiler.so $CARGO_TARGET_DIR/travis-deployment-tmp/ | ||
cp $CARGO_TARGET_DIR/x86_64-unknown-linux-gnu/release/memory-profiler-cli $CARGO_TARGET_DIR/travis-deployment-tmp/ | ||
cp $CARGO_TARGET_DIR/x86_64-unknown-linux-gnu/release/memory-profiler-gather $CARGO_TARGET_DIR/travis-deployment-tmp/ | ||
|
||
cd $CARGO_TARGET_DIR/travis-deployment-tmp | ||
tar -zcf ../travis-deployment/memory-profiler-x86_64-unknown-linux-gnu.tgz \ | ||
libmemory_profiler.so \ | ||
memory-profiler-cli \ | ||
memory-profiler-gather | ||
|
||
echo "Deployment package built!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.