aboutsummaryrefslogtreecommitdiff
path: root/ci/before_deploy.sh
blob: 099ae652337f1a5d67f979e49987c3cf006e506a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# `before_deploy` phase: here we package the build artifacts

set -ex

# Generate artifacts for release
cargo build --target $TARGET --release

# create a "staging" directory
mkdir staging

# NOTE All Cargo build artifacts will be under the 'target/$TARGET/{debug,release}'
cp target/$TARGET/release/ilc* staging

cd staging

# release tarball will look like 'ilc-unknown-linux-gnu.tar.gz'
tar czf ../${PROJECT_NAME}-${TARGET}.tar.gz *