Skip to content

Commit db07bad

Browse files
mathieupoumeyrolsonoskali
authored andcommitted
add stretch target
1 parent 55eb00d commit db07bad

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

.github/workflows/cross-platform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- aarch64-unknown-linux-gnu
1919
- armv6vfp-unknown-linux-gnueabihf
2020
- armv7-unknown-linux-gnueabihf
21+
- armv7-unknown-linux-gnueabihf-stretch
2122
- aarch64-unknown-linux-musl
2223
- armv7-unknown-linux-musl
2324
- aarch64-linux-android

.travis/cross.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ case "$PLATFORM" in
103103
cargo build --target aarch64-apple-darwin
104104
;;
105105

106+
"armv7-unknown-linux-gnueabihf-stretch")
107+
(cd .travis/docker-debian-stretch; docker build --tag debian-stretch .)
108+
docker run -v `pwd`:/tract -w /tract -e PLATFORM=armv7-unknown-linux-gnueabihf debian-stretch ./.travis/cross.sh
109+
export RUSTC_TRIPLE=armv7-unknown-linux-gnueabihf
110+
;;
111+
106112
"aarch64-unknown-linux-gnu" | "armv6vfp-unknown-linux-gnueabihf" | "armv7-unknown-linux-gnueabihf" | \
107113
"aarch64-unknown-linux-musl" | "armv7-unknown-linux-musl" )
108114

@@ -202,9 +208,13 @@ case "$PLATFORM" in
202208
;;
203209
esac
204210

205-
if [ -n "$AWS_ACCESS_KEY_ID" -a -e "target/$RUSTC_TRIPLE/release/tract" ]
211+
if [ -e "target/$RUSTC_TRIPLE/release/tract" ]
206212
then
207213
export RUSTC_TRIPLE
208214
TASK_NAME=`.travis/make_bundle.sh`
209-
aws s3 cp $TASK_NAME.tgz s3://tract-ci-builds/tasks/$PLATFORM/$TASK_NAME.tgz
215+
echo bench task: $TASK_NAME
216+
if [ -n "$AWS_ACCESS_KEY_ID" ]
217+
then
218+
aws s3 cp $TASK_NAME.tgz s3://tract-ci-builds/tasks/$PLATFORM/$TASK_NAME.tgz
219+
fi
210220
fi
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM debian:stretch
2+
3+
COPY sources.list /etc/apt/sources.list
4+
RUN apt-get -y update ; apt-get -y upgrade ; apt-get install -y curl wget build-essential # gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
5+
# RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
6+
# ENV PATH $PATH:/root/.cargo/bin
7+
# RUN rustup target install armv7-unknown-linux-gnueabihf
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
deb http://archive.debian.org/debian/ stretch contrib main non-free
2+
deb http://archive.debian.org/debian stretch-backports main
3+
deb http://archive.debian.org/debian-security stretch/updates main

0 commit comments

Comments
 (0)