doc/README: update instructions for container build cache

This commit is contained in:
mappu 2024-09-03 18:24:57 +12:00
parent d7ccbe3c17
commit ca2e3c4a19
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
# scratch files # scratch files
*.json *.json
# docker files
container-build-cache/
# binaries # binaries
cmd/handbindings/handbindings cmd/handbindings/handbindings
cmd/handbindings/bindings_test/direct cmd/handbindings/bindings_test/direct

View File

@ -78,4 +78,4 @@ Some C++ idioms that were difficult to project were omitted from the binding. Bu
2. Build your application: 2. Build your application:
- `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build -buildvcs=false -ldflags '-s -w -H windowsgui'` - `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build -buildvcs=false -ldflags '-s -w -H windowsgui'`
For repeated builds, the compile speed can be improved if you also bind-mount the Docker container's `GOCACHE` directory: `-v ./container-build-cache:/root/.cache/go-build` For repeated builds, the compile speed can be improved if you also bind-mount the Docker container's `GOCACHE` directory: `-v $(pwd)/container-build-cache:/root/.cache/go-build`