Skip to content

Commit

Permalink
updating scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 27, 2024
1 parent 3370621 commit d9257ff
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
with:
push: true
tags: ikatson/rqbit:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
# platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/arm/v7
context: target/cross/
file: docker/Dockerfile
34 changes: 19 additions & 15 deletions docker/Dockerfile.xx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,25 @@ ENV PROFILE_FOLDER=debug
RUN --mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/src/target \
find /src/target \
/usr/local/cargo/git/db \
/usr/local/cargo/registry/cache \
/usr/local/cargo/registry/index \
-maxdepth 2 -type d && \
xx-cargo build \
--target-dir "target/$(xx-cargo --print-target-triple)" \
--profile "${PROFILE_NAME}" \
--no-default-features --features rust-tls,webui && \
find /src/target -maxdepth 4 -type d && \
export BIN="./target/$(xx-cargo --print-target-triple)/$(xx-cargo --print-target-triple)/${PROFILE_FOLDER}/rqbit" && \
xx-verify --static "${BIN}" && \
find /src/target -maxdepth 4 -type d && \
mv "${BIN}" /bin/rqbit
--mount=type=cache,target=/src/target <<EOF
set -e
export TT="$(xx-cargo --print-target-triple)"
export BIN="./target/${TT}/${TT}/${PROFILE_FOLDER}/rqbit"

find /src/target \
/usr/local/cargo/git/db \
/usr/local/cargo/registry/cache \
/usr/local/cargo/registry/index \
-maxdepth 2 -type d
xx-cargo build \
--target-dir "target/${TT}" \
--profile "${PROFILE_NAME}" \
--no-default-features --features rust-tls,webui
find /src/target -maxdepth 4 -type d
xx-verify --static "${BIN}"
find /src/target -maxdepth 4 -type d
mv "${BIN}" /bin/rqbit
EOF

FROM scratch

Expand Down

0 comments on commit d9257ff

Please sign in to comment.