Skip to content

Commit

Permalink
chore: fix travis again
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Aug 3, 2020
1 parent 32657f7 commit 79d5ffa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -26,7 +26,7 @@ script:
- ./build.sh

before_deploy:
- mv ./target/release/oscar "oscar-$TARGET."
- mv ./target/"${TARGET}"/release/oscar "oscar-${TARGET}."

deploy:
token:
Expand All @@ -36,7 +36,7 @@ deploy:
on:
tags: true
provider: releases
skip_cleanup: true
cleanup: false

branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "oscar"
version = "0.1.10"
version = "0.1.11"
authors = ["Adam Simpson <adam@heysparkbox.com>"]
edition = "2018"
description = "A CLI application to download videos from PBS. Ideally run in cron or another scheduler."
Expand Down
8 changes: 4 additions & 4 deletions build.sh
@@ -1,13 +1,13 @@
#!/bin/sh

rustup target add "$TARGET"
rustup target add "${TARGET}"

# Download the Raspberry Pi cross-compilation toolchain if needed
if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]
if [ "${TARGET}" = "arm-unknown-linux-gnueabihf" ]
then
git clone --depth=1 https://github.com/raspberrypi/tools.git /tmp/tools;
export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:$PATH;
export PATH=/tmp/tools/arm-bcm2708/arm-linux-gnueabihf/bin:${PATH};
export CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
fi

cargo build --target="$TARGET" --release
cargo build --target="${TARGET}" --release

0 comments on commit 79d5ffa

Please sign in to comment.