mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
Lightning fast docker rebuilds
This commit is contained in:
parent
8ac6647291
commit
2ea0d06d62
@ -57,7 +57,7 @@ RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -T
|
||||
COPY packages/backend/native-utils packages/backend/native-utils/
|
||||
|
||||
# Compile native-utils utilising sccache
|
||||
RUN --mount=type=cache,target=/root/.cargo --mount=type=cache,target=/tmp/sccache yarn workspace native-utils build
|
||||
RUN --mount=type=cache,target=/root/.cargo --mount=type=cache,target=/tmp/sccache --mount=type=cache,target=/iceshrimp/packages/backend/native-utils/target --mount=type=cache,target=/iceshrimp/packages/backend/native-utils/migration/target yarn workspace native-utils build
|
||||
|
||||
# Copy in the rest of the files to compile
|
||||
COPY . ./
|
||||
|
@ -36,7 +36,7 @@
|
||||
"artifacts": "napi artifacts",
|
||||
"build": "yarn build:napi && yarn build:migration",
|
||||
"build:napi": "napi build --features napi --platform --release ./built/",
|
||||
"build:migration": "cargo build --locked --profile release-no-lto -p migration && cp ./target/release-no-lto/migration ./built/migration",
|
||||
"build:migration": "cargo build --locked --profile release-no-lto -p migration --target-dir migration/target && cp ./migration/target/release-no-lto/migration ./built/migration",
|
||||
"build:debug": "napi build --platform ./built/ && cargo build -p migration",
|
||||
"prepublishOnly": "napi prepublish -t npm",
|
||||
"test": "yarn cargo:test && yarn build:napi && ava",
|
||||
|
Loading…
Reference in New Issue
Block a user