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 845db82 commit 6411d29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
usr-local-cargo-registry-index
src-target
key: docker-xx-v1
save-always: true

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

ENV PROFILE=dev
ENV PROFILE_NAME=dev
ENV PROFILE_FOLDER=debug

RUN --mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
Expand All @@ -25,10 +26,12 @@ RUN --mount=type=cache,target=/usr/local/cargo/git/db \
-maxdepth 2 -type d && \
xx-cargo build \
--target-dir "target/$(xx-cargo --print-target-triple)" \
--profile "${PROFILE}" \
--profile "${PROFILE_NAME}" \
--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
find /src/target -maxdepth 2 -type d && \
xx-verify --static "./target/$(xx-cargo --print-target-triple)/${PROFILE_FOLDER}/rqbit" && \
find /src/target -maxdepth 2 -type d && \
mv "./target/$(xx-cargo --print-target-triple)/${PROFILE_FOLDER}/rqbit" /bin/rqbit

FROM scratch

Expand Down

0 comments on commit 6411d29

Please sign in to comment.