Skip to content

Commit

Permalink
messing
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 27, 2024
1 parent a678720 commit fbf74c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
usr-local-cargo-registry-cache
usr-local-cargo-registry-index
src-target
key: docker-xx
key: docker-xx-v0

- name: inject cache into docker
uses: reproducible-containers/[email protected]
Expand Down
15 changes: 5 additions & 10 deletions docker/Dockerfile.xx
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,17 @@ RUN xx-apk add gcc musl-dev
COPY / /src/
WORKDIR /src/

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 \
find /usr/local/cargo/git/db \
/usr/local/cargo/registry/cache \
/usr/local/cargo/registry/index \
-maxdepth 2 -type d && \
cargo fetch

ENV PROFILE=release-github

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 -maxdepth 2 -type d && \
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 --profile "${PROFILE}" --no-default-features --features rust-tls,webui && \
xx-verify --static "./target/$(xx-cargo --print-target-triple)/${PROFILE}/rqbit" && \
mv "./target/$(xx-cargo --print-target-triple)/${PROFILE}/rqbit" /bin/rqbit
Expand Down

0 comments on commit fbf74c2

Please sign in to comment.