Skip to content

Commit

Permalink
Merge pull request #593 from dtcooper/build-speedup
Browse files Browse the repository at this point in the history
Speed up build
  • Loading branch information
JasonLG1979 authored Dec 1, 2022
2 parents 25ea17d + d417690 commit d5ef20d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ RUN mkdir /.cargo
RUN echo '[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' > /.cargo/config \
&& echo '[target.armv7-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' >> /.cargo/config

RUN cargo install cargo-deb
RUN cargo install --jobs "$(nproc)" cargo-deb
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ LIBRESPOT_VER="$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev
LIBRESPOT_HASH="$(git rev-parse HEAD | cut -c 1-7 2>/dev/null || echo unknown)"

# Build librespot
cargo build --profile raspotify --target $BUILD_TARGET --no-default-features --features "alsa-backend pulseaudio-backend"
cargo build --jobs "$(nproc)" --profile raspotify --target $BUILD_TARGET --no-default-features --features "alsa-backend pulseaudio-backend"

# Copy librespot to pkg root
cd /mnt/raspotify
Expand Down Expand Up @@ -72,7 +72,7 @@ fi
cd asound-conf-wizard

# Build asound-conf-wizard
/build/cache/bin/cargo-deb --profile default --target $BUILD_TARGET
/build/cache/bin/cargo-deb --profile default --target $BUILD_TARGET -- --jobs "$(nproc)"

cd /build/$BUILD_TARGET/debian

Expand Down

0 comments on commit d5ef20d

Please sign in to comment.