huber icon indicating copy to clipboard operation
huber copied to clipboard

Support ARMv7

Open innobead opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

innobead avatar Feb 17 '21 05:02 innobead

https://github.com/innobead/huber/runs/1930794494?check_suite_focus=true

There was a build issue happening in docker buildx and it should be fixed at upstream first.

#9 59.21 cargo fmt
#9 63.71 cargo build --release --workspace --exclude=huber-generator
#9 66.98     Updating crates.io index
#9 67.26 warning: spurious network error (2 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#9 67.44 warning: spurious network error (1 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#9 67.66 error: failed to get `Inflector` as a dependency of package `huber v0.2.5 (/workspace/src/app)`
#9 67.66 
#9 67.66 Caused by:
#9 67.66   failed to fetch `https://github.com/rust-lang/crates.io-index`
#9 67.66 
#9 67.66 Caused by:
#9 67.66   could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#9 67.67 make[1]: *** [Makefile:21: build] Error 101
#9 67.67 make[1]: Leaving directory '/workspace'
#9 67.67 make: *** [Makefile:34: release] Error 2
#9 ERROR: executor failed running [/bin/sh -c suffix=$(echo ${TARGETPLATFORM} | sed "s/\//-/g") &&     apt update &&     apt install -y sudo &&     make setup-dev &&     make ${MAKE_TARGET} &&     apt-get clean &&     rustup self uninstall -y &&     cp target/${BUILD_TARGET}/huber target/${BUILD_TARGET}/huber-${suffix}]: exit code: 2
------
 > [build 4/4] RUN suffix=$(echo linux/arm/v7 | sed "s/\//-/g") &&     apt update &&     apt install -y sudo &&     make setup-dev &&     make release &&     apt-get clean &&     rustup self uninstall -y &&     cp target/release/huber target/release/huber-${suffix}:
------
Dockerfile.build:8
--------------------
   7 |     COPY . /workspace
   8 | >>> RUN suffix=$(echo ${TARGETPLATFORM} | sed "s/\//-/g") && \
   9 | >>>     apt update && \
  10 | >>>     apt install -y sudo && \
  11 | >>>     make setup-dev && \
  12 | >>>     make ${MAKE_TARGET} && \
  13 | >>>     apt-get clean && \
  14 | >>>     rustup self uninstall -y && \
  15 | >>>     cp target/${BUILD_TARGET}/huber target/${BUILD_TARGET}/huber-${suffix}
  16 |     
--------------------
error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c suffix=$(echo ${TARGETPLATFORM} | sed "s/\//-/g") &&     apt update &&     apt install -y sudo &&     make setup-dev &&     make ${MAKE_TARGET} &&     apt-get clean &&     rustup self uninstall -y &&     cp target/${BUILD_TARGET}/huber target/${BUILD_TARGET}/huber-${suffix}]: exit code: 2
+ cleanup
+ docker buildx rm builder
make: *** [Makefile:74: release-multiarch] Error 1

innobead avatar Feb 18 '21 23:02 innobead

Although the automatic build is not ready, the code is ready for ARMv7 supported.

innobead avatar Feb 19 '21 00:02 innobead