Skip to content

Commit

Permalink
Ugh, just use old deploy script.
Browse files Browse the repository at this point in the history
  • Loading branch information
pietgeursen committed May 24, 2020
1 parent 40cba4d commit 6a60691
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,23 @@ main() {
test -f Cargo.lock || cargo generate-lockfile

# TODO generate the c headerfile and copy it too.
cp $src/bamboo-core/libbamboo.h $stage/


cd bamboo-core
cross build -p bamboo-core --target $TARGET --release --no-default-features
cp target/$TARGET/release/libbamboo_core.a $stage/ || true
cp target/$TARGET/release/libbamboo_core.so $stage/ || true # this would fail for musl builds so fail quietly
cp target/$TARGET/release/bamboo_core.dll $stage/ || true # if we're windows
cd ..

if [ -z $IS_NO_STD ]
then
cd bamboo-cli
cross build --target $TARGET --release
cd ..
cp target/$TARGET/release/bamboo-cli $stage/ || true
cp target/$TARGET/release/bamboo-cli.exe $stage/ || true # windows
cp target/$TARGET/release/libbamboo_core.a $stage/ || true
cp target/$TARGET/release/libbamboo_core.so $stage/ || true # this would fail for musl builds so fail quietly
cp target/$TARGET/release/bamboo_core.dll $stage/ || true # if we're windows
else
cd bamboo-core
cross build -p bamboo-core --target $TARGET --release --no-default-features
cp target/$TARGET/release/libbamboo_core.a $stage/
cd ..
fi

cp $src/bamboo-core/libbamboo.h $stage/

cd $stage
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
cd $src
Expand Down

0 comments on commit 6a60691

Please sign in to comment.