Skip to content

Commit

Permalink
Merge pull request #196 from himmelblau-idm/dmulder/deb_build_fix
Browse files Browse the repository at this point in the history
Attempt to fix the cargo version in launchpad build
  • Loading branch information
dmulder authored Oct 2, 2024
2 parents 961f093 + 012aa75 commit b8dae18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ override_dh_auto_build:
# Ensure the necessary development package is installed
# Extract the vendor dependencies
tar -xf vendor.tar.xz
# Ensure rustup is installed if not present
if ! command -v rustup > /dev/null; then \
echo "Installing rustup..."; \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; \
source $(HOME)/.cargo/env; \
rustup default stable; \
fi
# Build the project with the appropriate flags
$(RUST_ENV) export CARGO_HOME=$(CARGO_HOME) && export CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) && \
cargo build --release --frozen
Expand Down

0 comments on commit b8dae18

Please sign in to comment.