Skip to content

Commit

Permalink
localでLinux版の実験する用
Browse files Browse the repository at this point in the history
  • Loading branch information
yamachu committed Jan 28, 2025
1 parent 130dfd7 commit 8981891
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.local
# build artifacts
binding/**/target
**/bin
**/obj

examples
src/VoicevoxCoreSharp.Core.Unity

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ submodule/checkout:

clean:
git clean -fxde .local

# development
docker/linux/mount:
DOCKER_BUILDKIT=1 docker build -f development/Dockerfile.linux-local .
20 changes: 20 additions & 0 deletions development/Dockerfile.linux-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM rust:1.84.0 as rust-builder

RUN apt-get update && apt-get install -y cmake

WORKDIR /app
RUN mkdir /dist
RUN --mount=type=bind,source=binding/voicevox_core,target=/app,readwrite \
cargo build --release -p voicevox_core_c_api --features load-onnxruntime && \
cd /app/target/release && \
find . -type l | while read link; do \
target=$(readlink "$link"); \
if [ -f "$target" ]; then \
cp "$target" "$link".tmp; \
unlink "$link"; \
mv "$link".tmp "$link"; \
fi \
done && \
cp *.so *.so.* /dist

# Run dotnet or copy to local

0 comments on commit 8981891

Please sign in to comment.