Skip to content

Commit

Permalink
do a stretch build for aarch64/gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos authored and kali committed Jan 11, 2024
1 parent 65153b0 commit 78b730d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
platform:
- raspbian
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-gnu-stretch
- armv6vfp-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf-stretch
Expand Down
7 changes: 4 additions & 3 deletions .travis/cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ case "$PLATFORM" in
cargo build --target aarch64-apple-darwin
;;

"armv7-unknown-linux-gnueabihf-stretch")
"aarch64-unknown-linux-gnu-stretch" | "armv7-unknown-linux-gnueabihf-stretch" )
INNER_PLATFORM=${PLATFORM%-stretch}
(cd .travis/docker-debian-stretch; docker build --tag debian-stretch .)
docker run -v `pwd`:/tract -w /tract -e PLATFORM=armv7-unknown-linux-gnueabihf debian-stretch ./.travis/cross.sh
docker run -v `pwd`:/tract -w /tract -e PLATFORM=$INNER_PLATFORM debian-stretch ./.travis/cross.sh
sudo chown -R `whoami` .
export RUSTC_TRIPLE=armv7-unknown-linux-gnueabihf
export RUSTC_TRIPLE=$INNER_PLATFORM
;;

"aarch64-unknown-linux-gnu" | "armv6vfp-unknown-linux-gnueabihf" | "armv7-unknown-linux-gnueabihf" | \
Expand Down
5 changes: 0 additions & 5 deletions .travis/docker-debian-stretch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
FROM debian:stretch

COPY sources.list /etc/apt/sources.list
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
# RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# ENV PATH $PATH:/root/.cargo/bin
# RUN rustup target install armv7-unknown-linux-gnueabihf

0 comments on commit 78b730d

Please sign in to comment.