Skip to content

Commit

Permalink
fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzeroz committed Dec 30, 2022
1 parent df6710d commit af4a0c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/dockerfile/aarch64_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ RUN apt-get -y update && apt-get -y install \
RUN apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cmake

COPY ./cross-install.sh /library/
RUN /library/cross-install.sh -a $ARCH -v aarch64-linux-gnu -c
RUN /library/cross-install.sh -a $ARCH -v aarch64-linux-gnu -c true
2 changes: 1 addition & 1 deletion .github/dockerfile/armv4_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN apt-get -y update && apt-get -y install \
RUN apt-get -y install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf cmake

COPY ./cross-install.sh /library/
RUN /library/cross-install.sh -a $ARCH -v arm-linux-gnueabihf -c
RUN /library/cross-install.sh -a $ARCH -v arm-linux-gnueabihf -c true
2 changes: 1 addition & 1 deletion .github/dockerfile/x86_64_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN apt-get -y update && apt-get -y install \
RUN apt-get -y install gcc g++ cmake

COPY ./cross-install.sh /library/
RUN /library/cross-install.sh -a $ARCH -v x86_64-linux-gnu -c
RUN /library/cross-install.sh -a $ARCH -v x86_64-linux-gnu -c true
4 changes: 2 additions & 2 deletions cross-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ arch=?
branch=?
cross=false

while getopts ":a:v:b:c" OPT; do
while getopts ":a:v:b:c:" OPT; do
case ${OPT} in
a)
arch=$OPTARG
Expand All @@ -21,7 +21,7 @@ while getopts ":a:v:b:c" OPT; do
branch=$OPTARG
;;
c)
cross=true
cross=$OPTARG
;;
esac
done
Expand Down

0 comments on commit af4a0c9

Please sign in to comment.