Skip to content

Commit

Permalink
Use --locked for cargo build
Browse files Browse the repository at this point in the history
  • Loading branch information
vruello committed May 2, 2024
1 parent df71286 commit ac9d9ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
docker build -t openwec-builder:debian-bookworm -f Dockerfile-debian-bookworm . && \
docker run -t -u $(id -u):$(id -g) -v $(pwd)/../:/SRC \
--env CARGO_HOME=/SRC/target/.cargo openwec-builder:debian-bookworm \
cargo deb --manifest-path=./common/Cargo.toml && \
cargo deb --manifest-path=./common/Cargo.toml -- --locked && \
for i in ../target/debian/*.deb; do mv "$i" "${i/.deb/_deb12.deb}"; done;
- name: Upload debian bookworm package
uses: actions/upload-artifact@v3
Expand All @@ -34,7 +34,7 @@ jobs:
docker build -t openwec-builder:debian-bullseye -f Dockerfile-debian-bullseye . && \
docker run -t -u $(id -u):$(id -g) -v $(pwd)/../:/SRC \
--env CARGO_HOME=/SRC/target/.cargo openwec-builder:debian-bullseye \
cargo deb --manifest-path=./common/Cargo.toml && \
cargo deb --manifest-path=./common/Cargo.toml -- --locked && \
for i in ../target/debian/*.deb; do mv "$i" "${i/.deb/_deb11.deb}"; done;
- name: Upload debian bullseye package
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN cargo chef cook --release --recipe-path recipe.json

# Build application
COPY . .
RUN cargo build --release
RUN cargo build --release --locked


FROM debian:bookworm-slim
Expand Down

0 comments on commit ac9d9ee

Please sign in to comment.